From 577be1e6fc0c18849aff791c766a5cdf61894752 Mon Sep 17 00:00:00 2001 From: ajshort Date: Tue, 3 May 2011 21:59:51 +1000 Subject: [PATCH] MINOR: Explicitly sort objects in DataListTest to prevent test failures across different DB's. --- tests/model/DataListTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/model/DataListTest.php b/tests/model/DataListTest.php index 1240453df..9e94e7dbb 100644 --- a/tests/model/DataListTest.php +++ b/tests/model/DataListTest.php @@ -18,7 +18,7 @@ class DataListTest extends SapphireTest { function testListCreationSortAndLimit() { // 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 $names = array();