Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
redirect
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
Merge requests
!21
Converting \r\n in \n only
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Converting \r\n in \n only
issue/redirect-3244924:3244924-fix-tests-on
into
8.x-1.x
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Paulo Henrique Cota Starling
requested to merge
issue/redirect-3244924:3244924-fix-tests-on
into
8.x-1.x
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
Closes
#3244924
0
0
Merge request reports
Compare
8.x-1.x
version 2
3f06602e
3 years ago
version 1
28cb6809
3 years ago
8.x-1.x (base)
and
latest version
latest version
b9fc8d82
2 commits,
3 years ago
version 2
3f06602e
2 commits,
3 years ago
version 1
28cb6809
1 commit,
3 years ago
2 files
+
7
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
modules/redirect_404/tests/src/Functional/Fix404RedirectUITest.php
+
3
−
3
Options
@@ -158,7 +158,7 @@ class Fix404RedirectUITest extends Redirect404TestBase {
$this
->
clickLink
(
'Ignore'
);
$this
->
assertUrl
(
'admin/config/search/redirect/settings?ignore='
.
$path_to_ignore
.
$destination
);
$this
->
assertText
(
'Resolved the path '
.
$path_to_ignore
.
' in the database. Please check the ignored list and save the settings.'
);
$this
->
assertSession
()
->
fieldValueEquals
(
'ignore_pages'
,
$node_to_ignore
.
"
\
r\
n
/term/*
\n
/node/2/test"
);
$this
->
assertSession
()
->
fieldValueEquals
(
'ignore_pages'
,
$node_to_ignore
.
"
\n
/term/*
\n
/node/2/test"
);
$this
->
assertSession
()
->
elementContains
(
'css'
,
'#edit-ignore-pages'
,
$node_to_ignore
);
$this
->
assertSession
()
->
elementContains
(
'css'
,
'#edit-ignore-pages'
,
$terms_to_ignore
);
$this
->
assertSession
()
->
elementContains
(
'css'
,
'#edit-ignore-pages'
,
$path_to_ignore
);
@@ -187,10 +187,10 @@ class Fix404RedirectUITest extends Redirect404TestBase {
$this
->
drupalGet
(
'admin/config/search/redirect/404'
);
$this
->
assertText
(
'llama_page'
);
$this
->
clickLink
(
'Ignore'
);
$this
->
assertSession
()
->
fieldValueEquals
(
'ignore_pages'
,
"/node/*
\
r\
n
/term/*
\n
/llama_page"
);
$this
->
assertSession
()
->
fieldValueEquals
(
'ignore_pages'
,
"/node/*
\n
/term/*
\n
/llama_page"
);
$this
->
getSession
()
->
getPage
()
->
pressButton
(
'Save configuration'
);
$this
->
drupalGet
(
'admin/config/search/redirect/settings'
);
$this
->
assertSession
()
->
fieldValueEquals
(
'ignore_pages'
,
"/node/*
\
r\
n
/term/*
\n
/llama_page"
);
$this
->
assertSession
()
->
fieldValueEquals
(
'ignore_pages'
,
"/node/*
\n
/term/*
\n
/llama_page"
);
}
/**
Loading