diff --git a/tests/system/Helpers/FilesystemHelperTest.php b/tests/system/Helpers/FilesystemHelperTest.php index 25a1cb1680bd..c48ccd1ff328 100644 --- a/tests/system/Helpers/FilesystemHelperTest.php +++ b/tests/system/Helpers/FilesystemHelperTest.php @@ -37,11 +37,12 @@ protected function setUp(): void 'simpleFile' => 'A tap-tap-tapping upon my door', '.hidden' => 'There is no spoon', ]; + + helper('filesystem'); } public function testDirectoryMapDefaults() { - helper('filesystem'); $this->assertTrue(function_exists('directory_map')); $expected = [ @@ -65,7 +66,6 @@ public function testDirectoryMapDefaults() public function testDirectoryMapShowsHiddenFiles() { - helper('filesystem'); $this->assertTrue(function_exists('directory_map')); $expected = [ @@ -257,7 +257,7 @@ public function testDeleteFilesFailure() public function testGetFilenames() { - $this->assertTrue(function_exists('delete_files')); + $this->assertTrue(function_exists('get_filenames')); // Not sure the directory names should actually show up // here but this matches v3.x results. @@ -279,7 +279,7 @@ public function testGetFilenames() public function testGetFilenamesWithHidden() { - $this->assertTrue(function_exists('delete_files')); + $this->assertTrue(function_exists('get_filenames')); // Not sure the directory names should actually show up // here but this matches v3.x results.