mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
When relying on the order of returned objects, sort explicitly as it is nondeterminate for non-MySQL.
This commit is contained in:
parent
89ec7e622e
commit
9dac9e5675
@ -69,7 +69,7 @@ class DataListTest extends SapphireTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testToNestedArray() {
|
function testToNestedArray() {
|
||||||
$list = DataList::create('DataObjectTest_TeamComment');
|
$list = DataList::create('DataObjectTest_TeamComment')->sort('ID');
|
||||||
$nestedArray = $list->toNestedArray();
|
$nestedArray = $list->toNestedArray();
|
||||||
$expected = array(
|
$expected = array(
|
||||||
0=>
|
0=>
|
||||||
|
Loading…
Reference in New Issue
Block a user