Skip to content

Commit 560c166

Browse files
committed
test: skip mongodb bundle when extension is not loaded
1 parent 1c01a8b commit 560c166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Fixtures/app/AppKernel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function registerBundles(): array
8080
$bundles[] = new FriendsOfBehatSymfonyExtensionBundle();
8181
}
8282

83-
if (class_exists(DoctrineMongoDBBundle::class)) {
83+
if (extension_loaded('mongodb') && class_exists(DoctrineMongoDBBundle::class)) {
8484
$bundles[] = new DoctrineMongoDBBundle();
8585
}
8686

@@ -131,7 +131,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
131131
'session' => class_exists(SessionFactory::class) ? ['storage_factory_id' => 'session.storage.factory.mock_file'] + $cookie : ['storage_id' => 'session.storage.mock_file'] + $cookie,
132132
'profiler' => [
133133
'enabled' => true,
134-
'collect' => false,
134+
'collect' => true,
135135
],
136136
'php_errors' => ['log' => true],
137137
'messenger' => $messengerConfig,
@@ -150,7 +150,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load
150150
'session' => class_exists(SessionFactory::class) ? ['storage_factory_id' => 'session.storage.factory.mock_file'] : ['storage_id' => 'session.storage.mock_file'],
151151
'profiler' => [
152152
'enabled' => true,
153-
'collect' => false,
153+
'collect' => true,
154154
],
155155
'messenger' => $messengerConfig,
156156
'router' => ['utf8' => true],

0 commit comments

Comments
 (0)