From 016c70a6e9ebfcd13fc6cfd8c36a109f687daf25 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sun, 30 Oct 2011 12:50:52 +1300 Subject: [PATCH] MINOR Fixed broken SS_MapTest in PostgreSQL. Need to sort the IDs before asserting the DataList contents. --- tests/model/MapTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 tests/model/MapTest.php diff --git a/tests/model/MapTest.php b/tests/model/MapTest.php old mode 100644 new mode 100755 index fae6d1e06..1f94f746b --- a/tests/model/MapTest.php +++ b/tests/model/MapTest.php @@ -24,7 +24,7 @@ class SS_MapTest extends SapphireTest { } function testIteration() { - $list = DataList::create("DataObjectTest_TeamComment"); + $list = DataList::create("DataObjectTest_TeamComment")->sort('ID'); $map = new SS_Map($list, 'Name', 'Comment'); $text = ""; foreach($map as $k => $v) {