From 2e54850ba56bc9c05c24564538f03a35bfa746f7 Mon Sep 17 00:00:00 2001 From: Tatiana Glushchenko Date: Mon, 29 Sep 2025 18:12:09 +1300 Subject: [PATCH] tool_forcedcache: Add tearDown method to runtests Resolves error "Property 'tmpdir' defined in 'tool_forcedcache_cache_config_test' was not reset after the test!" --- tests/cache_config_test.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cache_config_test.php b/tests/cache_config_test.php index 65bc3d1..74df754 100644 --- a/tests/cache_config_test.php +++ b/tests/cache_config_test.php @@ -46,6 +46,11 @@ public function copy_to_valid_config_location(string $source): string { return realpath($dest); } + protected function tearDown(): void { + $this->tmpdir = null; + parent::tearDown(); + } + public function test_read_config_file_from_invalid_path() { global $CFG; $this->resetAfterTest(true);