1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +02:00

[ticket/17151] Make macros available for extensions

Also add tests and error reporting.

PHPBB3-17151
This commit is contained in:
rxu
2023-09-08 20:46:01 +07:00
parent e83ae55d2d
commit 69cc2a9734
21 changed files with 455 additions and 153 deletions

View File

@@ -21,12 +21,12 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
private static $helper;
protected static $fixtures = array(
'foo/bar/',
'./',
);
protected function tearDown(): void
{
$this->purge_cache();
$this->uninstall_ext('foo/bar');
parent::tearDown();
}
@@ -50,16 +50,16 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case
{
parent::setUp();
$this->phpbb_extension_manager = $this->get_extension_manager();
$this->purge_cache();
$this->phpbb_extension_manager->enable('foo/bar');
$this->login();
$this->admin_login();
$this->add_lang('acp/extensions');
}
protected static function setup_extensions()
{
return ['foo/bar'];
}
public function test_extensions_list()
{
$crawler = self::request('GET', 'adm/index.php?i=acp_extensions&mode=main&sid=' . $this->sid);