When relying on the order of returned objects, sort explicitly as it is nondeterminate for non-MySQL.

This commit is contained in:
Simon Welsh 2011-10-29 14:49:38 +13:00
parent 89ec7e622e
commit 9dac9e5675

View File

@ -69,7 +69,7 @@ class DataListTest extends SapphireTest {
}
function testToNestedArray() {
$list = DataList::create('DataObjectTest_TeamComment');
$list = DataList::create('DataObjectTest_TeamComment')->sort('ID');
$nestedArray = $list->toNestedArray();
$expected = array(
0=>