Permalink
Browse files

MINOR Fixed tests using PostgreSQL as the database

  • Loading branch information...
1 parent f1a67a8 commit b1acd0520da6d7501f10d9672276a95932116a97 @halkyon halkyon committed Feb 15, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/model/MapTest.php
@@ -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());
}

0 comments on commit b1acd05

Please sign in to comment.