// Check there is a link to delete a default transition.
$session->
linkByHrefExists('/admin/config/workflow/workflows/manage/test/transition/publish/delete'
);
// Delete the transition.
$this->
drupalGet('/admin/config/workflow/workflows/manage/test/transition/publish/delete'
);
$this->
submitForm([], 'Delete'
);
// The link to delete the transition should now be gone.
$session->
linkByHrefNotExists('/admin/config/workflow/workflows/manage/test/transition/publish/delete'
);
// Ensure that the published settings cannot be changed.
$this->
drupalGet('admin/config/workflow/workflows/manage/test/state/published'
);
$session->
fieldDisabled('type_settings[published]'
);
$session->
fieldDisabled('type_settings[default_revision]'
);
// Ensure that the draft settings cannot be changed.
$this->
drupalGet('admin/config/workflow/workflows/manage/test/state/draft'
);
$session->
fieldDisabled('type_settings[published]'
);
$session->
fieldDisabled('type_settings[default_revision]'
);
$this->
drupalGet('admin/config/workflow/workflows/manage/test/type/node'
);
$session->
pageTextContains('Select the content types for the Test workflow'
);
foreach ($types as $type) { $session->
pageTextContains($type->
label());