Skip to content

Commit 2e54850

Browse files
committed
tool_forcedcache: Add tearDown method to runtests
Resolves error "Property 'tmpdir' defined in 'tool_forcedcache_cache_config_test' was not reset after the test!"
1 parent 54b071b commit 2e54850

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/cache_config_test.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ public function copy_to_valid_config_location(string $source): string {
4646
return realpath($dest);
4747
}
4848

49+
protected function tearDown(): void {
50+
$this->tmpdir = null;
51+
parent::tearDown();
52+
}
53+
4954
public function test_read_config_file_from_invalid_path() {
5055
global $CFG;
5156
$this->resetAfterTest(true);

0 commit comments

Comments
 (0)