mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/11465] Correctly set the root path for the test
PHPBB3-11465
This commit is contained in:
parent
78bcc31a5d
commit
bc423f0d97
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@ class phpbb_extension_modules_test extends phpbb_test_case
|
||||||
|
|
||||||
public function test_get_module_infos()
|
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';
|
$this->acp_modules->module_class = 'acp';
|
||||||
$acp_modules = $this->acp_modules->get_module_infos();
|
$acp_modules = $this->acp_modules->get_module_infos();
|
||||||
$this->assertEquals(array(
|
$this->assertEquals(array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue