You are here

protected function NodeAccessTest::setUp in Workbench Moderation 8

Sets the test up.

Overrides ModerationStateTestBase::setUp

File

tests/src/Functional/NodeAccessTest.php, line 15

Class

NodeAccessTest
Tests permission access control around nodes.

Namespace

Drupal\Tests\workbench_moderation\Functional

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