Permalink
Browse files

ensure test pass when files are returned in different order

  • Loading branch information...
ceeram committed Dec 10, 2011
1 parent 039e041 commit 1eb55bc20127cbb74cbda069f1bb333806e2c8ab
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Utility/FolderTest.php
@@ -436,7 +436,7 @@ public function testFolderTreeWithHiddenFiles() {
);
$result = $Folder->tree(null, false);
- $this->assertEquals($expected, $result);
+ $this->assertEquals(sort($expected), sort($result));
$expected = array(
array(
@@ -451,7 +451,7 @@ public function testFolderTreeWithHiddenFiles() {
);
$result = $Folder->tree(null, true);
- $this->assertEquals($expected, $result);
+ $this->assertEquals(sort($expected), sort($result));
$Folder->delete();
}

0 comments on commit 1eb55bc

Please sign in to comment.