MINOR Fixed broken SS_MapTest in PostgreSQL. Need to sort the IDs before asserting the DataList contents.

This commit is contained in:
Sean Harvey 2011-10-30 12:50:52 +13:00
parent e5b88c6c48
commit 016c70a6e9

2
tests/model/MapTest.php Normal file → Executable file
View File

@ -24,7 +24,7 @@ class SS_MapTest extends SapphireTest {
} }
function testIteration() { function testIteration() {
$list = DataList::create("DataObjectTest_TeamComment"); $list = DataList::create("DataObjectTest_TeamComment")->sort('ID');
$map = new SS_Map($list, 'Name', 'Comment'); $map = new SS_Map($list, 'Name', 'Comment');
$text = ""; $text = "";
foreach($map as $k => $v) { foreach($map as $k => $v) {