public function Redirect404TestBase::setUp in Redirect 8
Overrides BrowserTestBase::setUp
2 calls to Redirect404TestBase::setUp()
- Fix404RedirectUILanguageTest::setUp in modules/
redirect_404/ tests/ src/ Functional/ Fix404RedirectUILanguageTest.php - Redirect404LogSuppressorTest::setUp in modules/
redirect_404/ tests/ src/ Functional/ Redirect404LogSuppressorTest.php
2 methods override Redirect404TestBase::setUp()
- Fix404RedirectUILanguageTest::setUp in modules/
redirect_404/ tests/ src/ Functional/ Fix404RedirectUILanguageTest.php - Redirect404LogSuppressorTest::setUp in modules/
redirect_404/ tests/ src/ Functional/ Redirect404LogSuppressorTest.php
File
- modules/
redirect_404/ tests/ src/ Functional/ Redirect404TestBase.php, line 53
Class
- Redirect404TestBase
- This class provides methods specifically for testing redirect 404 paths.
Namespace
Drupal\Tests\redirect_404\FunctionalCode
public function setUp() {
parent::setUp();
// Create an admin user.
$this->adminUser = $this
->drupalCreateUser($this->adminPermissions);
$this
->drupalLogin($this->adminUser);
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Page',
]);
}