Permalink
Browse files

MINOR Fixed broken tests in PostgreSQL

  • Loading branch information...
1 parent 753bed5 commit c5452a7d4c1ca340923b19fd5ab3b2560c6cc096 @halkyon halkyon committed Feb 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/model/DataListTest.php
@@ -404,6 +404,7 @@ public function testFilterArrayInArray() {
public function testSimpleExclude() {
$list = DataList::create("DataObjectTest_TeamComment");
$list->exclude('Name', 'Bob');
+ $list->sort('Name');
$this->assertEquals(2, $list->count());
$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Joe');
$this->assertEquals('Phil', $list->last()->Name, 'Last comment should be from Phil');
@@ -487,7 +488,8 @@ public function testMultipleExcludeWithTwoArray() {
*/
public function testMultipleExcludeWithTwoArrayOneTeam() {
$list = DataList::create("DataObjectTest_TeamComment");
- $list->exclude(array('Name'=>array('Bob','Phil'), 'TeamID' => array($this->idFromFixture('DataObjectTest_Team', 'team1'))));
+ $list->exclude(array('Name' => array('Bob', 'Phil'), 'TeamID' => array($this->idFromFixture('DataObjectTest_Team', 'team1'))));
+ $list->sort('Name');
$this->assertEquals(2, $list->count());
$this->assertEquals('Joe', $list->first()->Name, 'First comment should be from Joe');
$this->assertEquals('Phil', $list->last()->Name, 'Last comment should be from Phil');

0 comments on commit c5452a7

Please sign in to comment.