You are here

protected function AdminToolbarStateTest::setUp in Moderation Sidebar 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/AdminToolbarStateTest.php, line 31

Class

AdminToolbarStateTest
Contains test for the toolbar state label.

Namespace

Drupal\Tests\moderation_sidebar\Functional

Code

protected function setUp() {
  parent::setUp();
  $node_type = $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $node_type
    ->setNewRevision(TRUE);
  $node_type
    ->save();
  $user = $this
    ->createUser([], NULL, TRUE);
  $this
    ->drupalLogin($user);
}