Skip to content

Commit

Permalink
tests: reset static file storage before tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhilton committed Oct 9, 2024
1 parent 6aad172 commit 840cd1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tool_objectfs_testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ protected function setUp(): void {
$this->filesystem = new test_file_system();
$this->logger = new \tool_objectfs\log\null_logger();

// Get the file system with reset flag enabled to reset it,
// since it is static and may have been initialised as a filedir system in another test
// instead of the desired objectfs test file system.
get_file_storage(true);

$this->resetAfterTest(true);
}

Expand Down

0 comments on commit 840cd1a

Please sign in to comment.