From 1eb55bc20127cbb74cbda069f1bb333806e2c8ab Mon Sep 17 00:00:00 2001 From: Ceeram Date: Sat, 10 Dec 2011 14:26:14 +0100 Subject: [PATCH] ensure test pass when files are returned in different order --- lib/Cake/Test/Case/Utility/FolderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Utility/FolderTest.php b/lib/Cake/Test/Case/Utility/FolderTest.php index 06acf119e..825bbd6d0 100644 --- a/lib/Cake/Test/Case/Utility/FolderTest.php +++ b/lib/Cake/Test/Case/Utility/FolderTest.php @@ -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(); }