MINOR Fixed broken test in PostgreSQL where assumption of IDs sorted isn't always the case

This commit is contained in:
Sean Harvey 2011-10-29 23:53:24 +13:00
parent 8f96ea7c9c
commit 2f4b630340

2
tests/model/DataObjectTest.php Normal file → Executable file
View 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);
}