mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
Merge branch '3.2.x'
This commit is contained in:
@@ -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'));
|
||||
|
@@ -10,6 +10,9 @@ services:
|
||||
arguments:
|
||||
- '@service_container'
|
||||
|
||||
dbal.conn.driver:
|
||||
synthetic: true
|
||||
|
||||
dispatcher:
|
||||
class: phpbb\db\driver\container_mock
|
||||
|
||||
|
@@ -10,6 +10,9 @@ services:
|
||||
arguments:
|
||||
- '@service_container'
|
||||
|
||||
dbal.conn.driver:
|
||||
synthetic: true
|
||||
|
||||
dispatcher:
|
||||
class: phpbb\db\driver\container_mock
|
||||
|
||||
|
@@ -10,6 +10,9 @@ services:
|
||||
arguments:
|
||||
- '@service_container'
|
||||
|
||||
dbal.conn.driver:
|
||||
synthetic: true
|
||||
|
||||
dispatcher:
|
||||
class: phpbb\db\driver\container_mock
|
||||
|
||||
|
@@ -10,6 +10,9 @@ services:
|
||||
arguments:
|
||||
- '@service_container'
|
||||
|
||||
dbal.conn.driver:
|
||||
synthetic: true
|
||||
|
||||
dispatcher:
|
||||
class: phpbb\db\driver\container_mock
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
@@ -304,6 +304,7 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
],
|
||||
'cache.driver.class' => 'phpbb\cache\driver\file'
|
||||
])
|
||||
->with_config(new \phpbb\config_php_file($phpbb_root_path, $phpEx))
|
||||
->without_compiled_container()
|
||||
->get_container();
|
||||
|
||||
|
Reference in New Issue
Block a user