mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
When relying on the order of returned objects, sort explicitly as it is nondeterminate for non-MySQL.
This commit is contained in:
parent
2c0257e9b9
commit
89ec7e622e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user