mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed broken SS_MapTest in PostgreSQL. Need to sort the IDs before asserting the DataList contents.
This commit is contained in:
parent
e5b88c6c48
commit
016c70a6e9
2
tests/model/MapTest.php
Normal file → Executable file
2
tests/model/MapTest.php
Normal file → Executable 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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user