From dd1aa9f0031083c90ad3c21b4a332673db2d0ed2 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Fri, 30 Oct 2026 14:46:50 +0800 Subject: [PATCH] test: keep `FileHandlerTest::testSaveMode` inside its own cache directory --- tests/system/Cache/Handlers/FileHandlerTest.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/system/Cache/Handlers/FileHandlerTest.php b/tests/system/Cache/Handlers/FileHandlerTest.php index ee26783ad992..03fa1645bcf9 100644 --- a/tests/system/Cache/Handlers/FileHandlerTest.php +++ b/tests/system/Cache/Handlers/FileHandlerTest.php @@ -294,13 +294,12 @@ public function testIsSupported(): void public function testSaveMode(int $int, string $string): void { // Initialize mode - $config = new Cache(); - $config->file['mode'] = $int; + $this->config->file['mode'] = $int; - $this->handler = CacheFactory::getHandler($config, 'file'); + $this->handler = CacheFactory::getHandler($this->config, 'file'); $this->handler->save(self::$key1, 'value'); - $file = $config->file['storePath'] . DIRECTORY_SEPARATOR . self::$key1; + $file = $this->config->file['storePath'] . DIRECTORY_SEPARATOR . self::$key1; $mode = octal_permissions(fileperms($file)); $this->assertSame($string, $mode);