Skip to content

Commit

Permalink
MINOR Fixed tests using PostgreSQL as the database
Browse files Browse the repository at this point in the history
  • Loading branch information
halkyon committed Feb 15, 2012
1 parent f1a67a8 commit b1acd05
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/model/MapTest.php
Expand Up @@ -59,20 +59,22 @@ function testToArray() {

function testKeys() {
$list = DataList::create('DataObjectTest_TeamComment');
$list->sort('Name');
$map = new SS_Map($list, 'Name', 'Comment');
$this->assertEquals(array(
'Joe',
'Bob',
'Joe',
'Phil'
), $map->keys());
}

function testValues() {
$list = DataList::create('DataObjectTest_TeamComment');
$list->sort('Name');
$map = new SS_Map($list, 'Name', 'Comment');
$this->assertEquals(array(
'This is a team comment by Joe',
'This is a team comment by Bob',
'This is a team comment by Joe',
'Phil is a unique guy, and comments on team2'
), $map->values());
}
Expand Down

0 comments on commit b1acd05

Please sign in to comment.