From c9a8482e11ebbd7b8f2f466e28c067534466145f Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Tue, 23 Mar 2010 00:15:33 +0000 Subject: [PATCH] BUGFIX: results sorted alphabetically for consistency git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101491 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/security/GroupCsvBulkLoaderTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/security/GroupCsvBulkLoaderTest.php b/tests/security/GroupCsvBulkLoaderTest.php index 6e03eb28f..deedc7043 100644 --- a/tests/security/GroupCsvBulkLoaderTest.php +++ b/tests/security/GroupCsvBulkLoaderTest.php @@ -48,7 +48,11 @@ class GroupCsvBulkLoaderTest extends SapphireTest { $updated = $results->Updated()->toArray(); $this->assertEquals(count($updated), 1); $this->assertEquals($updated[0]->Code, 'existinggroup'); - $this->assertEquals($updated[0]->Permissions()->column('Code'), array('CODE1', 'CODE2')); + $array1=$updated[0]->Permissions()->column('Code'); + $array2=array('CODE1', 'CODE2'); + sort($array1); + sort($array2); + $this->assertEquals($array1, $array2); } } \ No newline at end of file