mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed broken test in PostgreSQL where assumption of IDs sorted isn't always the case
This commit is contained in:
parent
8f96ea7c9c
commit
2f4b630340
2
tests/model/DataObjectTest.php
Normal file → Executable file
2
tests/model/DataObjectTest.php
Normal file → Executable file
@ -253,7 +253,7 @@ class DataObjectTest extends SapphireTest {
|
||||
$comment2 = $this->fixture->objFromFixture('DataObjectTest_TeamComment', 'comment2');
|
||||
$team->Comments()->remove($comment2);
|
||||
|
||||
$commentIDs = $team->Comments()->column('ID');
|
||||
$commentIDs = $team->Comments()->sort('ID')->column('ID');
|
||||
$this->assertEquals(array($comment1->ID, $newComment->ID), $commentIDs);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user