$block->
delete();
if ($permissions) { user_role_revoke_permissions(Role::AUTHENTICATED_ID,
$permissions);
} } /**
* Creates tests for ::testBlocks().
*/
public function getBlockTests() { $blocks =
[];
foreach ($this->
getTestThemes() as $theme) { $blocks +=
[ "
$theme: block-powered" =>
[ 'theme' =>
$theme,
'block_plugin' => 'system_powered_by_block',
'new_page_text' => 'Can you imagine anyone showing the label on this block',
'element_selector' => 'span a',
'label_selector' => 'h2',
'button_text' => 'Save Powered by Drupal',
'toolbar_item' => '#toolbar-item-user',
NULL,
],
"