Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- <server name="DOCTRINE_MONGODB_ODM" value="/path/to/doctrine-mongodb-odm/lib" /> -->
<!-- <server name="DOCTRINE_MONGODB" value="/path/to/doctrine-mongodb/lib" /> -->
<!-- <server name="DOCTRINE_COMMON" value="/path/to/doctrine-common/lib" /> -->
<env name="DOCTRINE_MONGODB_SERVER" value="mongodb://localhost:27017"/>
<env name="MONGODB_URI" value="mongodb://localhost:27017"/>
<!-- Allow 1 direct deprecation until https://github.com/doctrine/DoctrineMongoDBBundle/pull/675 is merged -->
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=1"/>
</php>
Expand Down
2 changes: 1 addition & 1 deletion tests/Command/CommandTestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
]);

$container->loadFromExtension('doctrine_mongodb', [
'connections' => ['default' => []],
'connections' => ['default' => ['server' => '%env(MONGODB_URI)%']],
'document_managers' => [
'command_test' => [
'connection' => 'default',
Expand Down
2 changes: 1 addition & 1 deletion tests/DocumentValueResolverFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
]);

$c->loadFromExtension('doctrine_mongodb', [
'connections' => ['default' => []],
'connections' => ['default' => ['server' => '%env(MONGODB_URI)%']],
'document_managers' => [
'default' => [
'mappings' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function createTestDocumentManager(array $paths = []): DocumentMan
$config->setHydratorNamespace('SymfonyTests\Doctrine');
$config->setMetadataDriverImpl(new AttributeDriver($paths));
$config->setMetadataCache(new ArrayAdapter());
$uri = getenv('DOCTRINE_MONGODB_SERVER') ?: 'mongodb://localhost:27017';
$uri = getenv('MONGODB_URI');

return DocumentManager::create(new Client($uri), $config);
}
Expand Down