Skip to content

Commit 369c83c

Browse files
authored
Update ext_test.php
1 parent f00515e commit 369c83c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/ext_test.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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]);

0 commit comments

Comments
 (0)