You are here

protected function RedirectUITest::setUp in Redirect 8

Overrides BrowserTestBase::setUp

1 call to RedirectUITest::setUp()
RedirectUILanguageTest::setUp in tests/src/Functional/RedirectUILanguageTest.php
1 method overrides RedirectUITest::setUp()
RedirectUILanguageTest::setUp in tests/src/Functional/RedirectUILanguageTest.php

File

tests/src/Functional/RedirectUITest.php, line 50

Class

RedirectUITest
UI tests for redirect module.

Namespace

Drupal\Tests\redirect\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer redirects',
    'administer redirect settings',
    'access content',
    'bypass node access',
    'create url aliases',
    'administer taxonomy',
    'administer url aliases',
  ]);
  $this->repository = \Drupal::service('redirect.repository');
  $this->storage = \Drupal::entityTypeManager()
    ->getStorage('redirect');
}