protected function RedirectJavascriptTest::setUp in Redirect 8
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ RedirectJavascriptTest.php, line 43
Class
- RedirectJavascriptTest
- UI tests for redirect module.
Namespace
Drupal\Tests\redirect\FunctionalJavascriptCode
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 = $this->container
->get('entity_type.manager')
->getStorage('redirect');
}