From d5459f56b852e3ce4eda7ac671340ad221e7389c Mon Sep 17 00:00:00 2001 From: Dmitry Tomin Date: Fri, 27 Apr 2018 11:32:26 +0300 Subject: [PATCH] fix --- pkg/mongodb/Tests/Spec/CreateMongodbContextTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/mongodb/Tests/Spec/CreateMongodbContextTrait.php b/pkg/mongodb/Tests/Spec/CreateMongodbContextTrait.php index 0e1d980e9..703ea7fc5 100644 --- a/pkg/mongodb/Tests/Spec/CreateMongodbContextTrait.php +++ b/pkg/mongodb/Tests/Spec/CreateMongodbContextTrait.php @@ -11,8 +11,8 @@ protected function createMongodbContext() if (false == $env = getenv('MONGO_DSN')) { $this->markTestSkipped('The MONGO_DSN env is not available. Skip tests'); } - $params = ['uri' => $env]; - $factory = new MongodbConnectionFactory($params); + + $factory = new MongodbConnectionFactory(['uri' => $env]); $context = $factory->createContext();