- protected function enableModerationThroughUi($content_type_id, $workflow_id = 'editorial') {
- $edit['workflow'] = $workflow_id;
- $this->drupalPostForm('admin/structure/types/manage/' . $content_type_id . '/moderation', $edit, t('Save'));
+ public function enableModerationThroughUi($content_type_id, $workflow_id = 'editorial') {
+ $this->drupalGet('/admin/config/workflow/workflows');
+ $this->assertLinkByHref('admin/config/workflow/workflows/manage/' . $workflow_id);
+ $edit['bundles[' . $content_type_id . ']'] = TRUE;
+ $this->drupalPostForm('admin/config/workflow/workflows/manage/' . $workflow_id . '/type/node', $edit, t('Save'));