Skip to content

Commit 609d458

Browse files
authored
test: keep FileHandlerTest::testSaveMode inside its own cache directory (#10687)
1 parent 3de11a0 commit 609d458

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎tests/system/Cache/Handlers/FileHandlerTest.php‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,12 @@ public function testIsSupported(): void
294294
public function testSaveMode(int $int, string $string): void
295295
{
296296
// Initialize mode
297-
$config = new Cache();
298-
$config->file['mode'] = $int;
297+
$this->config->file['mode'] = $int;
299298

300-
$this->handler = CacheFactory::getHandler($config, 'file');
299+
$this->handler = CacheFactory::getHandler($this->config, 'file');
301300
$this->handler->save(self::$key1, 'value');
302301

303-
$file = $config->file['storePath'] . DIRECTORY_SEPARATOR . self::$key1;
302+
$file = $this->config->file['storePath'] . DIRECTORY_SEPARATOR . self::$key1;
304303
$mode = octal_permissions(fileperms($file));
305304

306305
$this->assertSame($string, $mode);

0 commit comments

Comments
 (0)