Skip to content

Commit fbe2dfe

Browse files
committed
Use MONGODB_URI
1 parent ac8d03c commit fbe2dfe

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!-- <server name="DOCTRINE_MONGODB_ODM" value="/path/to/doctrine-mongodb-odm/lib" /> -->
2121
<!-- <server name="DOCTRINE_MONGODB" value="/path/to/doctrine-mongodb/lib" /> -->
2222
<!-- <server name="DOCTRINE_COMMON" value="/path/to/doctrine-common/lib" /> -->
23-
<env name="DOCTRINE_MONGODB_SERVER" value="mongodb://localhost:27017"/>
23+
<env name="MONGODB_URI" value="mongodb://localhost:27017"/>
2424
<!-- Allow 1 direct deprecation until https://github.com/doctrine/DoctrineMongoDBBundle/pull/675 is merged -->
2525
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=1"/>
2626
</php>

tests/Command/CommandTestKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
4444
]);
4545

4646
$container->loadFromExtension('doctrine_mongodb', [
47-
'connections' => ['default' => ['server' => '%env(DOCTRINE_MONGODB_SERVER)%']],
47+
'connections' => ['default' => ['server' => '%env(MONGODB_URI)%']],
4848
'document_managers' => [
4949
'command_test' => [
5050
'connection' => 'default',

tests/DocumentValueResolverFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
111111
]);
112112

113113
$c->loadFromExtension('doctrine_mongodb', [
114-
'connections' => ['default' => ['server' => '%env(DOCTRINE_MONGODB_SERVER)%']],
114+
'connections' => ['default' => ['server' => '%env(MONGODB_URI)%']],
115115
'document_managers' => [
116116
'default' => [
117117
'mappings' => [

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function createTestDocumentManager(array $paths = []): DocumentMan
2727
$config->setHydratorNamespace('SymfonyTests\Doctrine');
2828
$config->setMetadataDriverImpl(new AttributeDriver($paths));
2929
$config->setMetadataCache(new ArrayAdapter());
30-
$uri = getenv('DOCTRINE_MONGODB_SERVER') ?: 'mongodb://localhost:27017';
30+
$uri = getenv('MONGODB_URI');
3131

3232
return DocumentManager::create(new Client($uri), $config);
3333
}

0 commit comments

Comments
 (0)