Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 094729f

Browse files
[Cache] Fix tests
1 parent 091ac2b commit 094729f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Cache/Tests/Adapter/DoctrineDbalAdapterTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ private function createConnectionMock()
160160
private function getDbalConfig()
161161
{
162162
$config = new Configuration();
163-
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
163+
if (class_exists(DefaultSchemaManagerFactory::class)) {
164+
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
165+
}
164166

165167
return $config;
166168
}

0 commit comments

Comments
 (0)