protected $defaultTheme = 'stark';
/**
* Tests the contextual links on a menu block.
*/
public function testBlockContextualLinks() { $this->
drupalLogin($this->
drupalCreateUser([ 'administer menu',
'access contextual links',
'administer blocks',
]));
$menu =
$this->
addCustomMenu();
$block =
$this->
drupalPlaceBlock('system_menu_block:' .
$menu->
id(),
[ 'label' => 'Custom menu',
'provider' => 'system',
]);
$this->
addMenuLink('', '/',
$menu->
id());
$this->
drupalGet('test-page'
);
// Click on 'Configure block' contextual link.
$this->
clickContextualLink("#block-{
$block->
id()}", 'Configure block'
);