// The latest version page should not show, because there is no
// pending revision.
$this->
drupalGet($latest_version_path);
$this->
assertSession()->
statusCodeEquals(403
);
} /**
* Tests moderation non-bundle entity type.
*/
public function testNonBundleModerationForm() { $this->
drupalLogin($this->rootUser
);
$this->workflow->
getTypePlugin()->
addEntityTypeAndBundle('entity_test_mulrevpub', 'entity_test_mulrevpub'
);
$this->workflow->
save();
// Create new moderated content in draft.
$this->
drupalGet('entity_test_mulrevpub/add'
);
$this->
submitForm(['moderation_state[0][state]' => 'draft'
], 'Save'
);
// The latest version page should not show, because there is no pending
// revision.
$this->
drupalGet('/entity_test_mulrevpub/manage/1/latest'
);
$this->
assertSession()->
statusCodeEquals(403
);