mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
5dfadd0e9c
commit
c9a8482e11
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user