Skip to content

Commit b3c6df5

Browse files
Merge branch '7.4' into 8.0
* 7.4: [DependencyInjection] Fix FC with Config v8 Use standard MONGODB_URI for test configuration
2 parents 30e160c + 3ac96aa commit b3c6df5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Store/MongoDbStoreTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function setUpBeforeClass(): void
5050

5151
private static function getMongoManager(): Manager
5252
{
53-
return new Manager('mongodb://'.getenv('MONGODB_HOST'));
53+
return new Manager(getenv('MONGODB_URI'));
5454
}
5555

5656
protected function getClockDelay(): int

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ini name="error_reporting" value="-1" />
1414
<env name="REDIS_HOST" value="localhost" />
1515
<env name="MEMCACHED_HOST" value="localhost" />
16-
<env name="MONGODB_HOST" value="localhost" />
16+
<env name="MONGODB_URI" value="mongodb://localhost:27017" />
1717
<env name="ZOOKEEPER_HOST" value="localhost" />
1818
</php>
1919

0 commit comments

Comments
 (0)