MINOR: Replaced usage of deprecated toDropdownMap() with map().

This commit is contained in:
ajshort 2011-05-03 13:05:14 +10:00
parent 62d86bb18c
commit 435867d516

6
tests/model/SiteTreeTest.php Executable file → Normal file
View File

@ -188,9 +188,9 @@ class SiteTreeTest extends SapphireTest {
/* If we create a new SiteTree object with ID = 0 */
$obj = new SiteTree();
/* Then its children should be the top-level pages */
$stageChildren = $obj->stageChildren()->toDropDownMap('ID','Title');
$liveChildren = $obj->liveChildren()->toDropDownMap('ID','Title');
$allChildren = $obj->AllChildrenIncludingDeleted()->toDropDownMap('ID','Title');
$stageChildren = $obj->stageChildren()->map('ID','Title');
$liveChildren = $obj->liveChildren()->map('ID','Title');
$allChildren = $obj->AllChildrenIncludingDeleted()->map('ID','Title');
$this->assertContains('Home', $stageChildren);
$this->assertContains('Products', $stageChildren);