Skip to content

Commit

Permalink
Merge pull request codeigniter4#5340 from kenjis/fix-tests-Filesystem…
Browse files Browse the repository at this point in the history
…HelperTest

test: fix FilesystemHelperTest
  • Loading branch information
kenjis authored Nov 17, 2021
2 parents f6da16b + a4a92ed commit d4db7b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/system/Helpers/FilesystemHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -65,7 +66,6 @@ public function testDirectoryMapDefaults()

public function testDirectoryMapShowsHiddenFiles()
{
helper('filesystem');
$this->assertTrue(function_exists('directory_map'));

$expected = [
Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit d4db7b2

Please sign in to comment.