MINOR Fixed tests using PostgreSQL as the database

This commit is contained in:
Sean Harvey 2012-02-16 12:19:33 +13:00
parent f1a67a87de
commit b1acd0520d

View File

@ -59,20 +59,22 @@ class SS_MapTest extends SapphireTest {
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());
}