only in patch2: unchanged: --- a/core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php +++ b/core/modules/system/src/Tests/Menu/MenuTreeStorageTest.php @@ -181,21 +181,21 @@ public function testMenuLinkMoving() { } /** - * Tests with hidden child links. + * Tests with disabled child links. */ - public function testMenuHiddenChildLinks() { + public function testMenuDisabledChildLinks() { // Add some links with parent on the previous one and test some values. // // - test1 - // -- test2 (hidden) + // -- test2 (disabled) $this->addMenuLink('test1', ''); $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1)); - $this->addMenuLink('test2', 'test1', '', array(), 'tools', array('hidden' => 1)); + $this->addMenuLink('test2', 'test1', '', array(), 'tools', array('enabled' => 0)); // The 1st link does not have any visible children, so has_children is 0. $this->assertMenuLink('test1', array('has_children' => 0, 'depth' => 1)); - $this->assertMenuLink('test2', array('has_children' => 0, 'depth' => 2, 'hidden' => 1), array('test1')); + $this->assertMenuLink('test2', array('has_children' => 0, 'depth' => 2, 'enabled' => 0), array('test1')); // Add more links with parent on the previous one. //