Skip to content

Commit

Permalink
fix yii namespace bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ziaratban committed Oct 11, 2020
1 parent cb9e128 commit cd59f1c
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/ActiveDataProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace yiiunit\extensions\mongodb;

use MongoDB\BSON\ObjectID;
use yii;
use yii\data\ActiveDataProvider;
use yii\mongodb\Query;
use yiiunit\extensions\mongodb\data\ar\Customer;
Expand Down
1 change: 1 addition & 0 deletions tests/ActiveRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use MongoDB\BSON\Binary;
use MongoDB\BSON\ObjectID;
use MongoDB\BSON\Regex;
use yii;
use yii\mongodb\ActiveQuery;
use yiiunit\extensions\mongodb\data\ar\Customer;
use yiiunit\extensions\mongodb\data\ar\Animal;
Expand Down
1 change: 1 addition & 0 deletions tests/ActiveRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb;

use yii;
use yiiunit\extensions\mongodb\data\ar\Customer;
use yiiunit\extensions\mongodb\data\ar\CustomerOrder;
use yiiunit\extensions\mongodb\data\ar\Item;
Expand Down
1 change: 1 addition & 0 deletions tests/BatchQueryResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb;

use yii;
use yii\mongodb\BatchQueryResult;
use yii\mongodb\Query;
use yiiunit\extensions\mongodb\data\ar\Customer;
Expand Down
1 change: 1 addition & 0 deletions tests/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use MongoDB\BSON\ObjectID;
use MongoDB\Driver\Cursor;
use yii;

class CollectionTest extends TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use MongoDB\BSON\ObjectID;
use MongoDB\Driver\Cursor;
use yii;
use yii\helpers\ArrayHelper;

class CommandTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/ConnectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb;

use yii;
use yii\mongodb\Collection;
use yii\mongodb\Command;
use yii\mongodb\file\Collection as FileCollection;
Expand Down
1 change: 1 addition & 0 deletions tests/DatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb;

use yii;
use yii\mongodb\Collection;
use yii\mongodb\Command;
use yii\mongodb\file\Collection as FileCollection;
Expand Down
1 change: 1 addition & 0 deletions tests/LogBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use MongoDB\BSON\Javascript;
use MongoDB\BSON\ObjectID;
use yii;

class LogBuilderTest extends TestCase
{
Expand Down
1 change: 1 addition & 0 deletions tests/QueryRunTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace yiiunit\extensions\mongodb;

use MongoDB\BSON\ObjectID;
use yii;
use yii\mongodb\Query;

class QueryRunTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/file/ActiveRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use yiiunit\extensions\mongodb\data\ar\Customer;
use yiiunit\extensions\mongodb\data\ar\file\CustomerFile;
use yiiunit\extensions\mongodb\TestCase;
use yii;

/**
* @group file
Expand Down
1 change: 1 addition & 0 deletions tests/file/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace yiiunit\extensions\mongodb\file;

use MongoDB\BSON\ObjectID;
use yii;
use yii\mongodb\file\Cursor;
use yii\mongodb\file\Download;
use yiiunit\extensions\mongodb\TestCase;
Expand Down
2 changes: 1 addition & 1 deletion tests/file/DownloadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace yiiunit\extensions\mongodb\file;

use yiiunit\extensions\mongodb\TestCase;

use yii;
/**
* @group file
*/
Expand Down
1 change: 1 addition & 0 deletions tests/file/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb\file;

use yii;
use yii\mongodb\file\Download;
use yii\mongodb\file\Query;
use yiiunit\extensions\mongodb\TestCase;
Expand Down
1 change: 1 addition & 0 deletions tests/file/StreamWrapperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb\file;

use yii;
use yiiunit\extensions\mongodb\TestCase;

class StreamWrapperTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/file/UploadTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace yiiunit\extensions\mongodb\file;

use MongoDB\BSON\ObjectID;
use yii;
use yiiunit\extensions\mongodb\TestCase;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/i18n/MongoDbMessageSourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace yiiunit\extensions\mongodb\i18n;

use yii;
use yii\i18n\I18N;
use yii\mongodb\i18n\MongoDbMessageSource;
use yiiunit\extensions\mongodb\TestCase;
Expand Down

2 comments on commit cd59f1c

@fl0v
Copy link

@fl0v fl0v commented on cd59f1c Oct 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the namespace is Yii not yii

@ziaratban
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no difference.

Please sign in to comment.