Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redirect_after_logout
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
redirect_after_logout
Commits
dfda7e9b
Commit
dfda7e9b
authored
2 years ago
by
Kurucz István
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3298837
by nevergone: Refactor test coverage (followup)
parent
7ade62a6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Functional/RedirectTest.php
+3
-3
3 additions, 3 deletions
tests/src/Functional/RedirectTest.php
tests/src/Functional/TestBase.php
+1
-1
1 addition, 1 deletion
tests/src/Functional/TestBase.php
with
4 additions
and
4 deletions
tests/src/Functional/RedirectTest.php
+
3
−
3
View file @
dfda7e9b
...
...
@@ -17,12 +17,12 @@ class RedirectTest extends TestBase {
];
/**
* Test redirecting
* Test redirecting
.
*
* @throws \Behat\Mink\Exception\ElementNotFoundException
* @throws \Behat\Mink\Exception\ExpectationException
*/
public
function
test
LogoutWithoutToken
()
{
public
function
test
Redirecting
()
{
$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.
...
...
This diff is collapsed.
Click to expand it.
tests/src/Functional/TestBase.php
+
1
−
1
View file @
dfda7e9b
...
...
@@ -70,7 +70,7 @@ abstract class TestBase extends BrowserTestBase {
parent
::
setUp
();
$this
->
adminUser
=
$this
->
drupalCreateUser
([
'administer site configuration'
,
'a
dminister user
s'
,
'a
ccess user profile
s'
,
]);
$this
->
authenticatedUser
=
$this
->
drupalCreateUser
();
$this
->
regularUser
=
$this
->
drupalCreateUser
([
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment