protected function ModerationFormTest::setUp in Workbench Moderation 8
Sets the test up.
Overrides ModerationStateTestBase::setUp
File
- tests/
src/ Functional/ ModerationFormTest.php, line 15
Class
- ModerationFormTest
- Tests the moderation form, specifically on nodes.
Namespace
Drupal\Tests\workbench_moderation\FunctionalCode
protected function setUp() {
parent::setUp();
$this
->drupalLogin($this->adminUser);
$this
->createContentTypeFromUi('Moderated content', 'moderated_content', TRUE, [
'draft',
'needs_review',
'published',
], 'draft');
$this
->grantUserPermissionToCreateContentOfType($this->adminUser, 'moderated_content');
}