MINOR Fixed broken test using PostgreSQL as the database

This commit is contained in:
Sean Harvey 2012-02-16 12:18:36 +13:00
parent 44d82209a9
commit f1a67a87de

View File

@ -447,6 +447,7 @@ class DataListTest extends SapphireTest {
$this->idFromFixture('DataObjectTest_Team', 'team1'), $this->idFromFixture('DataObjectTest_Team', 'team1'),
$this->idFromFixture('DataObjectTest_Team', 'team2') $this->idFromFixture('DataObjectTest_Team', 'team2')
))); )));
$list->sort('Name');
$this->assertEquals(2, $list->count()); $this->assertEquals(2, $list->count());
$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Phil'); $this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Phil');
$this->assertEquals('Phil', $list->last()->Name, 'First comment should be from Phil'); $this->assertEquals('Phil', $list->last()->Name, 'First comment should be from Phil');