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
This commit is contained in:
Geoff Munn 2010-03-23 00:15:33 +00:00 committed by Sam Minnee
parent 5dfadd0e9c
commit c9a8482e11

View File

@ -48,7 +48,11 @@ class GroupCsvBulkLoaderTest extends SapphireTest {
$updated = $results->Updated()->toArray(); $updated = $results->Updated()->toArray();
$this->assertEquals(count($updated), 1); $this->assertEquals(count($updated), 1);
$this->assertEquals($updated[0]->Code, 'existinggroup'); $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);
} }
} }