diff --git a/admin/tests/LeftAndMainTest.php b/admin/tests/LeftAndMainTest.php index 0b55a478d..e9db754e1 100644 --- a/admin/tests/LeftAndMainTest.php +++ b/admin/tests/LeftAndMainTest.php @@ -24,7 +24,7 @@ class LeftAndMainTest extends FunctionalTest { public function testSaveTreeNodeSorting() { $this->loginWithPermission('ADMIN'); - $rootPages = DataObject::get('LeftAndMainTest_Object', '"ParentID" = 0'); // implicitly sorted + $rootPages = DataObject::get('LeftAndMainTest_Object', '"ParentID" = 0', '"ID"'); // forcing sorting for non-MySQL $siblingIDs = $rootPages->column('ID'); $page1 = $rootPages->offsetGet(0); $page2 = $rootPages->offsetGet(1); @@ -197,4 +197,4 @@ class LeftAndMainTest_Object extends DataObject implements TestOnly { 'Hierarchy' ); -} \ No newline at end of file +}