diff options
author | Nils Adermann <naderman@naderman.de> | 2011-08-29 20:14:23 -0400 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2011-09-29 15:42:49 +0200 |
commit | c785ef7aa7953c5e533e48b11ef13d6b1f344813 (patch) | |
tree | 49363b193236619c0eed69fbd68b965d0e64748c /tests/extension/manager_test.php | |
parent | 018a8359974273b65a3e6bd8aeca75396fd36a5b (diff) | |
download | forums-c785ef7aa7953c5e533e48b11ef13d6b1f344813.tar forums-c785ef7aa7953c5e533e48b11ef13d6b1f344813.tar.gz forums-c785ef7aa7953c5e533e48b11ef13d6b1f344813.tar.bz2 forums-c785ef7aa7953c5e533e48b11ef13d6b1f344813.tar.xz forums-c785ef7aa7953c5e533e48b11ef13d6b1f344813.zip |
[feature/extension-manager] Make sure the extension manager works without cache
Includes a test for manager without a cache
PHPBB3-10323
Diffstat (limited to 'tests/extension/manager_test.php')
-rw-r--r-- | tests/extension/manager_test.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/extension/manager_test.php b/tests/extension/manager_test.php index 70c3543a69..52be88330a 100644 --- a/tests/extension/manager_test.php +++ b/tests/extension/manager_test.php @@ -81,4 +81,17 @@ class phpbb_extension_manager_test extends phpbb_database_test_case $this->assertTrue(phpbb_ext_moo::$purged); } + + public function test_enabled_no_cache() + { + $extension_manager = new phpbb_extension_manager( + $this->new_dbal(), + 'phpbb_ext', + dirname(__FILE__) . '/', + '.php' + ); + + $this->assertEquals(array('foo'), array_keys($extension_manager->all_enabled())); + } + } |