mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
[feature/bootstrap-dic] Bootstrap container from config.php
PHPBB3-11651
This commit is contained in:
@@ -40,11 +40,12 @@ class phpbb_di_container_test extends phpbb_test_case
|
||||
public function test_phpbb_create_compiled_container()
|
||||
{
|
||||
$phpbb_root_path = __DIR__ . '/../../phpBB/';
|
||||
$config_file = __DIR__ . '/fixtures/config.php';
|
||||
$extensions = array(
|
||||
new phpbb_di_extension_config(__DIR__ . '/fixtures/config.php'),
|
||||
new phpbb_di_extension_core($phpbb_root_path),
|
||||
);
|
||||
$container = phpbb_create_compiled_container($extensions, array(), $phpbb_root_path, 'php');
|
||||
$container = phpbb_create_compiled_container($config_file, $extensions, array(), $phpbb_root_path, 'php');
|
||||
|
||||
$this->assertInstanceOf('Symfony\Component\DependencyInjection\ContainerBuilder', $container);
|
||||
$this->assertTrue($container->isFrozen());
|
||||
|
@@ -84,7 +84,10 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||
|
||||
protected function tearDown()
|
||||
{
|
||||
$this->template->clear_cache();
|
||||
if ($this->template)
|
||||
{
|
||||
$this->template->clear_cache();
|
||||
}
|
||||
}
|
||||
|
||||
protected function run_template($file, array $vars, array $block_vars, array $destroy, $expected, $lang_vars = array())
|
||||
|
Reference in New Issue
Block a user