Skip to content
Snippets Groups Projects
Commit dfda7e9b authored by Kurucz István's avatar Kurucz István
Browse files

Issue #3298837 by nevergone: Refactor test coverage (followup)

parent 7ade62a6
Branches
Tags
No related merge requests found
......@@ -17,12 +17,12 @@ class RedirectTest extends TestBase {
];
/**
* Test redirecting
* Test redirecting.
*
* @throws \Behat\Mink\Exception\ElementNotFoundException
* @throws \Behat\Mink\Exception\ExpectationException
*/
public function testLogoutWithoutToken() {
public function testRedirecting() {
$this->drupalLogin($this->adminUser);
$message = $this->randomMachineName();
// Not redirect authenticated user.
......@@ -38,7 +38,7 @@ class RedirectTest extends TestBase {
// External path with token.
$this->setRedirectConfig('http://[site:name].com/');
$this->logoutRedirectHelper($this->regularUser, 'http://example.com/', '', FALSE);
// Valid node path.
// Valid node path.
$this->setRedirectConfig('/foobar-example', $message);
$this->logoutRedirectHelper($this->regularUser, '/foobar-example', $message);
// Path only token.
......
......@@ -70,7 +70,7 @@ abstract class TestBase extends BrowserTestBase {
parent::setUp();
$this->adminUser = $this->drupalCreateUser([
'administer site configuration',
'administer users',
'access user profiles',
]);
$this->authenticatedUser = $this->drupalCreateUser();
$this->regularUser = $this->drupalCreateUser([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment