You are here

public function ResponsivePreviewTest::setUp in Responsive Theme Preview 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/ResponsivePreviewTest.php, line 42

Class

ResponsivePreviewTest
Tests the toolbar integration.

Namespace

Drupal\Tests\responsive_preview\FunctionalJavascript

Code

public function setUp() {
  parent::setUp();
  NodeType::create([
    'type' => 'article',
    'name' => 'Article',
  ])
    ->save();
  $this->previewUser = $this
    ->drupalCreateUser([
    'access responsive preview',
    'access toolbar',
    'view test entity',
    'administer entity_test content',
    'create article content',
    'edit own article content',
  ]);
}