Skip to content
Snippets Groups Projects
Commit ffe7d13a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2780705 by timmillwood: Fix "Manage moderation" dropbutton on /admin/structure/types

parent bc00f081
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -67,7 +67,7 @@ function content_moderation_entity_type_alter(array &$entity_types) {
* Implements hook_entity_operation().
*/
function content_moderation_entity_operation(EntityInterface $entity) {
_content_moderation_create_entity_type_info()->entityOperation($entity);
return _content_moderation_create_entity_type_info()->entityOperation($entity);
}
/**
......
......@@ -106,6 +106,8 @@ protected function createContentTypeFromUi($content_type_name, $content_type_id,
* Default state.
*/
protected function enableModerationThroughUi($content_type_id, array $allowed_states, $default_state) {
$this->drupalGet('admin/structure/types');
$this->assertLinkByHref('admin/structure/types/manage/' . $content_type_id . '/moderation');
$this->drupalGet('admin/structure/types/manage/' . $content_type_id . '/moderation');
$this->assertFieldByName('enable_moderation_state');
$this->assertNoFieldChecked('edit-enable-moderation-state');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment