aboutsummaryrefslogtreecommitdiffstats
path: root/tests/di/create_container_test.php
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-11-11 19:10:43 +0100
committerTristan Darricau <github@nicofuma.fr>2014-11-20 21:01:03 +0100
commit0a1db77ea85116adf24f9d3f0b92a44f818a107f (patch)
tree5ded6ced21caab395317997844ab08e4cb262e55 /tests/di/create_container_test.php
parentacc91a2bbf28656d4a6917b457ba3dd6b4e02e37 (diff)
downloadforums-0a1db77ea85116adf24f9d3f0b92a44f818a107f.tar
forums-0a1db77ea85116adf24f9d3f0b92a44f818a107f.tar.gz
forums-0a1db77ea85116adf24f9d3f0b92a44f818a107f.tar.bz2
forums-0a1db77ea85116adf24f9d3f0b92a44f818a107f.tar.xz
forums-0a1db77ea85116adf24f9d3f0b92a44f818a107f.zip
[ticket/12620] Add a test using a custom DI extension in an extension
PHPBB3-12620
Diffstat (limited to 'tests/di/create_container_test.php')
-rw-r--r--tests/di/create_container_test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/di/create_container_test.php b/tests/di/create_container_test.php
index 4e47751999..9cc714db40 100644
--- a/tests/di/create_container_test.php
+++ b/tests/di/create_container_test.php
@@ -16,6 +16,7 @@ namespace
define('PHPBB_ENVIRONMENT', 'production');
require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
+ require_once dirname(__FILE__) . '/fixtures/ext/vendor/enabled_4/di/extension.php';
class phpbb_di_container_test extends \phpbb_test_case
{
@@ -61,6 +62,7 @@ namespace
$this->assertTrue($container->hasParameter('enabled'));
$this->assertTrue($container->hasParameter('enabled_2'));
$this->assertTrue($container->hasParameter('enabled_3'));
+ $this->assertTrue($container->hasParameter('enabled_4'));
$this->assertFalse($container->hasParameter('disabled'));
$this->assertFalse($container->hasParameter('available'));
@@ -204,6 +206,7 @@ namespace phpbb\db\driver
array('ext_name' => 'vendor/enabled'),
array('ext_name' => 'vendor/enabled-2'),
array('ext_name' => 'vendor/enabled-3'),
+ array('ext_name' => 'vendor/enabled_4'),
);
}
}