protected function ModerationStateNodeTest::setUp in Workbench Moderation 8.2
Sets the test up.
Overrides ModerationStateTestBase::setUp
File
- src/
Tests/ ModerationStateNodeTest.php, line 18
Class
- ModerationStateNodeTest
- Tests general content moderation workflow for nodes.
Namespace
Drupal\workbench_moderation\TestsCode
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');
}