Skip to content

Commit 978089a

Browse files
committed
test: fix: move loading helper to setUp()
If you run one test method, it fails.
1 parent f6da16b commit 978089a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Helpers/FilesystemHelperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ protected function setUp(): void
3737
'simpleFile' => 'A tap-tap-tapping upon my door',
3838
'.hidden' => 'There is no spoon',
3939
];
40+
41+
helper('filesystem');
4042
}
4143

4244
public function testDirectoryMapDefaults()
4345
{
44-
helper('filesystem');
4546
$this->assertTrue(function_exists('directory_map'));
4647

4748
$expected = [
@@ -65,7 +66,6 @@ public function testDirectoryMapDefaults()
6566

6667
public function testDirectoryMapShowsHiddenFiles()
6768
{
68-
helper('filesystem');
6969
$this->assertTrue(function_exists('directory_map'));
7070

7171
$expected = [

0 commit comments

Comments
 (0)