From f00515e479739be2679c791998f39b254e91dcf0 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Tue, 6 May 2025 16:18:10 -0700 Subject: [PATCH 1/3] Update ext_test.php --- tests/ext_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ext_test.php b/tests/ext_test.php index 12dee45..312241a 100644 --- a/tests/ext_test.php +++ b/tests/ext_test.php @@ -33,7 +33,7 @@ public function test_enable() $this->extension_manager->enable(self::TEAM_SECURITY); // Assert it's enabled - $this->assertEquals([self::TEAM_SECURITY], array_keys($this->extension_manager->all_enabled())); + $this->assertEquals([self::TEAM_SECURITY], array_keys($this->create_extension_manager()->all_enabled())); $this->assertEquals([self::TEAM_SECURITY], array_keys($this->extension_manager->all_configured())); } From 369c83c013665501c2c9e99d57f12921e22fc0ee Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 7 May 2025 17:37:07 -0700 Subject: [PATCH 2/3] Update ext_test.php --- tests/ext_test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/ext_test.php b/tests/ext_test.php index 312241a..3c6c8fb 100644 --- a/tests/ext_test.php +++ b/tests/ext_test.php @@ -33,7 +33,7 @@ public function test_enable() $this->extension_manager->enable(self::TEAM_SECURITY); // Assert it's enabled - $this->assertEquals([self::TEAM_SECURITY], array_keys($this->create_extension_manager()->all_enabled())); + $this->assertEquals([self::TEAM_SECURITY], array_keys($this->extension_manager->all_enabled())); $this->assertEquals([self::TEAM_SECURITY], array_keys($this->extension_manager->all_configured())); } @@ -52,7 +52,9 @@ public function test_disable() protected function create_extension_manager() { - $phpbb_root_path = __DIR__ . './../../../../'; + global $phpbb_log, $user; + + $phpbb_root_path = dirname(__DIR__, 2) . '/'; $php_ext = 'php'; $config = new \phpbb\config\config(['version' => PHPBB_VERSION]); From fdb62c7324164d7a835ab77e8f124adae78dee53 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 7 May 2025 17:43:51 -0700 Subject: [PATCH 3/3] Update ext_test.php --- tests/ext_test.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/ext_test.php b/tests/ext_test.php index 3c6c8fb..492d64f 100644 --- a/tests/ext_test.php +++ b/tests/ext_test.php @@ -52,8 +52,6 @@ public function test_disable() protected function create_extension_manager() { - global $phpbb_log, $user; - $phpbb_root_path = dirname(__DIR__, 2) . '/'; $php_ext = 'php';