File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public function test_enable()
3333 $ this ->extension_manager ->enable (self ::TEAM_SECURITY );
3434
3535 // Assert it's enabled
36- $ this ->assertEquals ([self ::TEAM_SECURITY ], array_keys ($ this ->create_extension_manager () ->all_enabled ()));
36+ $ this ->assertEquals ([self ::TEAM_SECURITY ], array_keys ($ this ->extension_manager ->all_enabled ()));
3737 $ this ->assertEquals ([self ::TEAM_SECURITY ], array_keys ($ this ->extension_manager ->all_configured ()));
3838 }
3939
@@ -52,7 +52,9 @@ public function test_disable()
5252
5353 protected function create_extension_manager ()
5454 {
55- $ phpbb_root_path = __DIR__ . './../../../../ ' ;
55+ global $ phpbb_log , $ user ;
56+
57+ $ phpbb_root_path = dirname (__DIR__ , 2 ) . '/ ' ;
5658 $ php_ext = 'php ' ;
5759
5860 $ config = new \phpbb \config \config (['version ' => PHPBB_VERSION ]);
You can’t perform that action at this time.
0 commit comments