mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed tests using PostgreSQL as the database
This commit is contained in:
parent
f1a67a87de
commit
b1acd0520d
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user