1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[feature/extension-manager] Make sure the extension manager works without cache

Includes a test for manager without a cache

PHPBB3-10323
This commit is contained in:
Nils Adermann
2011-08-29 20:14:23 -04:00
parent 018a835997
commit c785ef7aa7
2 changed files with 19 additions and 2 deletions

View File

@@ -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()));
}
}