mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: Replaced usage of deprecated toDropdownMap() with map().
This commit is contained in:
parent
ddcbd650d4
commit
daecdcd335
@ -188,9 +188,9 @@ class SiteTreeTest extends SapphireTest {
|
|||||||
/* If we create a new SiteTree object with ID = 0 */
|
/* If we create a new SiteTree object with ID = 0 */
|
||||||
$obj = new SiteTree();
|
$obj = new SiteTree();
|
||||||
/* Then its children should be the top-level pages */
|
/* Then its children should be the top-level pages */
|
||||||
$stageChildren = $obj->stageChildren()->toDropDownMap('ID','Title');
|
$stageChildren = $obj->stageChildren()->map('ID','Title');
|
||||||
$liveChildren = $obj->liveChildren()->toDropDownMap('ID','Title');
|
$liveChildren = $obj->liveChildren()->map('ID','Title');
|
||||||
$allChildren = $obj->AllChildrenIncludingDeleted()->toDropDownMap('ID','Title');
|
$allChildren = $obj->AllChildrenIncludingDeleted()->map('ID','Title');
|
||||||
|
|
||||||
$this->assertContains('Home', $stageChildren);
|
$this->assertContains('Home', $stageChildren);
|
||||||
$this->assertContains('Products', $stageChildren);
|
$this->assertContains('Products', $stageChildren);
|
||||||
|
Loading…
Reference in New Issue
Block a user