public function RedirectTest::setUp in Login Destination 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/RedirectTest.php \Drupal\Tests\login_destination\Functional\RedirectTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ RedirectTest.php, line 35
Class
- RedirectTest
- Tests redirects.
Namespace
Drupal\Tests\login_destination\FunctionalCode
public function setUp() {
parent::setUp();
// Create a node page to redirect to.
$this
->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
'display_submitted' => FALSE,
]);
$this
->drupalCreateNode();
// Create an user to test with.
$this->account = $this
->drupalCreateUser([
'access content',
]);
}