diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-09-05 02:29:15 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-20 19:06:47 +0100 |
commit | 0bf3d2d962c33ffa606d38e91d04665b78fbd8bc (patch) | |
tree | ad78962b1bb877ec0971ef7663847607db48d0ea /tests/di/create_container_test.php | |
parent | 0306fefe04ca987caa1a04bcc105ba76e8d01d9a (diff) | |
download | forums-0bf3d2d962c33ffa606d38e91d04665b78fbd8bc.tar forums-0bf3d2d962c33ffa606d38e91d04665b78fbd8bc.tar.gz forums-0bf3d2d962c33ffa606d38e91d04665b78fbd8bc.tar.bz2 forums-0bf3d2d962c33ffa606d38e91d04665b78fbd8bc.tar.xz forums-0bf3d2d962c33ffa606d38e91d04665b78fbd8bc.zip |
[ticket/12620] Add the support of the environments for the ext services
We look for an environment.yml file in the config/PHPBB_ENVIRONMENT/
directory of the extensionss. If the directory does not exist we look
for the environment.yml file in the 'default' environment and finally
for the services.yml file in the config/ directory.
PHPBB3-12620
Diffstat (limited to 'tests/di/create_container_test.php')
-rw-r--r-- | tests/di/create_container_test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/di/create_container_test.php b/tests/di/create_container_test.php index ecfe504775..ec9828debb 100644 --- a/tests/di/create_container_test.php +++ b/tests/di/create_container_test.php @@ -59,6 +59,8 @@ namespace // Checks use_extensions $this->assertTrue($container->hasParameter('enabled')); + $this->assertTrue($container->hasParameter('enabled_2')); + $this->assertTrue($container->hasParameter('enabled_3')); $this->assertFalse($container->hasParameter('disabled')); $this->assertFalse($container->hasParameter('available')); @@ -201,6 +203,8 @@ namespace phpbb\db\driver { return array( array('ext_name' => 'vendor/enabled'), + array('ext_name' => 'vendor/enabled-2'), + array('ext_name' => 'vendor/enabled-3'), ); } } |