Commit bfa386e5 authored by catch's avatar catch

Issue #2539310 by neclimdul, alexpott: BackendCompilerPassTest::testProcess...

Issue #2539310 by neclimdul, alexpott: BackendCompilerPassTest::testProcess fails when sqlite not installed
parent 626f64d8
......@@ -103,7 +103,8 @@ protected function getSqliteContainer($service) {
$container = new ContainerBuilder();
$container->setDefinition('service', $service);
$container->setDefinition('sqlite.service', new Definition(__NAMESPACE__ . '\\ServiceClassSqlite'));
$container->set('database', new Connection(new \PDO('sqlite::memory:'), []));
$mock = $this->getMockBuilder('Drupal\Core\Database\Driver\sqlite\Connection')->setMethods(NULL)->disableOriginalConstructor()->getMock();
$container->set('database', $mock);
return $container;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment