diff --git a/tests/unit/data/config.php b/tests/unit/data/config.php index 1cd036d..d12df7f 100644 --- a/tests/unit/data/config.php +++ b/tests/unit/data/config.php @@ -50,7 +50,7 @@ return [ ], ], 'mongo' => [ - 'dsn' => 'mongodb://localhost:27017', + 'dsn' => 'mongodb://travis:test@localhost:27017', 'dbName' => 'yii2test', 'options' => [], ] diff --git a/tests/unit/extensions/mongo/MongoTestCase.php b/tests/unit/extensions/mongo/MongoTestCase.php index 61f35c8..439afb2 100644 --- a/tests/unit/extensions/mongo/MongoTestCase.php +++ b/tests/unit/extensions/mongo/MongoTestCase.php @@ -15,6 +15,7 @@ class MongoTestCase extends TestCase protected $mongoConfig = [ 'dsn' => 'mongodb://localhost:27017', 'defaultDatabaseName' => 'yii2test', + 'options' => [], ]; /** * @var Connection Mongo connection instance.