You are here

protected function NodeAccessTest::setUp in Workbench Moderation 8.2

Sets the test up.

Overrides ModerationStateTestBase::setUp

File

src/Tests/NodeAccessTest.php, line 17

Class

NodeAccessTest
Tests permission access control around nodes.

Namespace

Drupal\workbench_moderation\Tests

Code

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');
}