From 38df36840f8b81b79ae572ccb49a303680bddf56 Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Tue, 26 Nov 2013 21:19:16 +0200 Subject: [PATCH] Mongo test config updated. --- tests/unit/data/config.php | 2 +- tests/unit/extensions/mongo/MongoTestCase.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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.