You are here

protected function RedirectNodeFormTest::setUp in Redirect 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/RedirectNodeFormTest.php, line 43

Class

RedirectNodeFormTest
Test the redirect functionality on node forms.

Namespace

Drupal\Tests\redirect\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create Basic page node type.
  if ($this->profile != 'standard') {
    $this
      ->drupalCreateContentType([
      'type' => 'page',
      'name' => 'Basic page',
      'display_submitted' => FALSE,
    ]);
  }
  $this->webUser = $this
    ->drupalCreateUser([
    'access content',
    'create page content',
    'edit own page content',
  ]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'access content',
    'administer redirects',
    'bypass node access',
  ]);
}