mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR: Explicitly sort objects in DataListTest to prevent test failures across different DB's.
This commit is contained in:
parent
43c39bed8f
commit
577be1e6fc
@ -18,7 +18,7 @@ class DataListTest extends SapphireTest {
|
|||||||
|
|
||||||
function testListCreationSortAndLimit() {
|
function testListCreationSortAndLimit() {
|
||||||
// By default, a DataList will contain all items of that class
|
// By default, a DataList will contain all items of that class
|
||||||
$list = DataList::create('DataObjectTest_TeamComment');
|
$list = DataList::create('DataObjectTest_TeamComment')->sort('ID');
|
||||||
|
|
||||||
// We can iterate on the DataList
|
// We can iterate on the DataList
|
||||||
$names = array();
|
$names = array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user