mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +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 */
|
||||
$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);
|
||||
|
Loading…
Reference in New Issue
Block a user