mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-30 11:11:23 +02:00
[ticket/11465] Correctly set the root path for the test
PHPBB3-11465
This commit is contained in:
parent
78bcc31a5d
commit
bc423f0d97
@ -42,6 +42,11 @@ class phpbb_extension_modules_test extends phpbb_test_case
|
||||
|
||||
public function test_get_module_infos()
|
||||
{
|
||||
global $phpbb_root_path;
|
||||
|
||||
// Correctly set the root path for this test to this directory, so the classes can be found
|
||||
$phpbb_root_path = dirname(__FILE__) . '/';
|
||||
|
||||
$this->acp_modules->module_class = 'acp';
|
||||
$acp_modules = $this->acp_modules->get_module_infos();
|
||||
$this->assertEquals(array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user