Skip to content

Commit 7eb7604

Browse files
committed
test: sort file info by array key
It may fail unless sorting.
1 parent 28bb815 commit 7eb7604

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/system/Helpers/FilesystemHelperTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,10 @@ public function testGetDirFileInfo(): void
451451
],
452452
];
453453

454-
$this->assertSame($expected, get_dir_file_info(SUPPORTPATH . 'Files/baker'));
454+
$result = get_dir_file_info(SUPPORTPATH . 'Files/baker');
455+
ksort($result);
456+
457+
$this->assertSame($expected, $result);
455458
}
456459

457460
public function testGetDirFileInfoNested(): void

0 commit comments

Comments
 (0)