mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
ensure test pass when files are returned in different order
This commit is contained in:
parent
039e041665
commit
1eb55bc201
1 changed files with 2 additions and 2 deletions
|
@ -436,7 +436,7 @@ class FolderTest extends CakeTestCase {
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $Folder->tree(null, false);
|
$result = $Folder->tree(null, false);
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals(sort($expected), sort($result));
|
||||||
|
|
||||||
$expected = array(
|
$expected = array(
|
||||||
array(
|
array(
|
||||||
|
@ -451,7 +451,7 @@ class FolderTest extends CakeTestCase {
|
||||||
);
|
);
|
||||||
|
|
||||||
$result = $Folder->tree(null, true);
|
$result = $Folder->tree(null, true);
|
||||||
$this->assertEquals($expected, $result);
|
$this->assertEquals(sort($expected), sort($result));
|
||||||
|
|
||||||
$Folder->delete();
|
$Folder->delete();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue