You are here

protected function DeprecatedModerationStateViewsRelationshipTest::setUp in Drupal 8

Overrides BrowserTestBase::setUp

File

core/modules/content_moderation/tests/src/Functional/DeprecatedModerationStateViewsRelationshipTest.php, line 33

Class

DeprecatedModerationStateViewsRelationshipTest
Test the deprecated views relationships.

Namespace

Drupal\Tests\content_moderation\Functional

Code

protected function setUp() {
  parent::setUp();
  NodeType::create([
    'type' => 'moderated',
  ])
    ->save();
  $workflow = $this
    ->createEditorialWorkflow();
  $workflow
    ->getTypePlugin()
    ->addEntityTypeAndBundle('node', 'moderated');
  $workflow
    ->save();
  $this
    ->drupalLogin($this->rootUser);
}