ensure test pass when files are returned in different order

This commit is contained in:
Ceeram 2011-12-10 14:26:14 +01:00
parent 039e041665
commit 1eb55bc201

View file

@ -436,7 +436,7 @@ class FolderTest extends CakeTestCase {
);
$result = $Folder->tree(null, false);
$this->assertEquals($expected, $result);
$this->assertEquals(sort($expected), sort($result));
$expected = array(
array(
@ -451,7 +451,7 @@ class FolderTest extends CakeTestCase {
);
$result = $Folder->tree(null, true);
$this->assertEquals($expected, $result);
$this->assertEquals(sort($expected), sort($result));
$Folder->delete();
}