function DeprecatedModerationStateViewsRelationshipTest::setUp

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.