1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

Merge branch 'ticket/14957' into ticket/14957-rhea

This commit is contained in:
Marc Alexander
2017-01-03 21:41:36 +01:00
9 changed files with 55 additions and 10 deletions

View File

@@ -46,6 +46,7 @@ namespace
{
$container = $this->builder->get_container();
$this->assertInstanceOf('Symfony\Component\DependencyInjection\ContainerBuilder', $container);
$this->assertFalse($container->hasParameter('container_exception'));
// Checks the core services
$this->assertTrue($container->hasParameter('core'));
@@ -54,7 +55,7 @@ namespace
$this->assertTrue($container->isFrozen());
// Checks inject_config
$this->assertTrue($container->hasParameter('dbal.dbhost'));
$this->assertTrue($container->hasParameter('core.table_prefix'));
// Checks use_extensions
$this->assertTrue($container->hasParameter('enabled'));

View File

@@ -10,6 +10,9 @@ services:
arguments:
- '@service_container'
dbal.conn.driver:
synthetic: true
dispatcher:
class: phpbb\db\driver\container_mock

View File

@@ -10,6 +10,9 @@ services:
arguments:
- '@service_container'
dbal.conn.driver:
synthetic: true
dispatcher:
class: phpbb\db\driver\container_mock

View File

@@ -10,6 +10,9 @@ services:
arguments:
- '@service_container'
dbal.conn.driver:
synthetic: true
dispatcher:
class: phpbb\db\driver\container_mock

View File

@@ -10,6 +10,9 @@ services:
arguments:
- '@service_container'
dbal.conn.driver:
synthetic: true
dispatcher:
class: phpbb\db\driver\container_mock

View File

@@ -27,4 +27,12 @@ class phpbb_mock_phpbb_di_container_builder extends \phpbb\di\container_builder
{
return $this->phpbb_root_path . '../../tmp/autoload.' . $this->php_ext;
}
/**
* {@inheritdoc}
*/
protected function inject_dbal_driver()
{
return;
}
}