Skip to content

Commit c5452a7

Browse files
committed
MINOR Fixed broken tests in PostgreSQL
1 parent 753bed5 commit c5452a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/model/DataListTest.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ public function testFilterArrayInArray() {
404404
public function testSimpleExclude() {
405405
$list = DataList::create("DataObjectTest_TeamComment");
406406
$list->exclude('Name', 'Bob');
407+
$list->sort('Name');
407408
$this->assertEquals(2, $list->count());
408409
$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Joe');
409410
$this->assertEquals('Phil', $list->last()->Name, 'Last comment should be from Phil');
@@ -487,7 +488,8 @@ public function testMultipleExcludeWithTwoArray() {
487488
*/
488489
public function testMultipleExcludeWithTwoArrayOneTeam() {
489490
$list = DataList::create("DataObjectTest_TeamComment");
490-
$list->exclude(array('Name'=>array('Bob','Phil'), 'TeamID' => array($this->idFromFixture('DataObjectTest_Team', 'team1'))));
491+
$list->exclude(array('Name' => array('Bob', 'Phil'), 'TeamID' => array($this->idFromFixture('DataObjectTest_Team', 'team1'))));
492+
$list->sort('Name');
491493
$this->assertEquals(2, $list->count());
492494
$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Joe');
493495
$this->assertEquals('Phil', $list->last()->Name, 'Last comment should be from Phil');

0 commit comments

Comments
 (0)