Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
0b1e336a
Commit
0b1e336a
authored
Dec 18, 2018
by
Marc Egger
Browse files
Revert "LinkTest.php"
parent
dfe8e7d3
Pipeline
#1181
passed with stage
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Tests/unit/core/report/LinkTest.php
View file @
0b1e336a
...
...
@@ -1116,19 +1116,19 @@ class LinkTest extends TestCase {
// Sip: URL, s
$result
=
$link
->
renderLink
(
'u:?form&r=12&xId=2345&L=1&type=99&gId=55|s'
);
$this
->
assertEquals
(
'<a href="
../../../../../../../../../../scratch/software/typo3/typo3_src-8.7.20/
index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
$this
->
assertEquals
(
'<a href="index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
// Sip: URL, s:0
$result
=
$link
->
renderLink
(
'u:?form&r=12&xId=2345&L=1&type=99&gId=55|s:0'
);
$this
->
assertEquals
(
'<a href="
../../../../../../../../../../scratch/software/typo3/typo3_src-8.7.20/
index.php?form&r=12&xId=2345&L=1&type=99&gId=55" >index.php?form&r=12&xId=2345&L=1&type=99&gId=55</a>'
,
$result
);
$this
->
assertEquals
(
'<a href="index.php?form&r=12&xId=2345&L=1&type=99&gId=55" >index.php?form&r=12&xId=2345&L=1&type=99&gId=55</a>'
,
$result
);
// Sip: URL, s:1
$result
=
$link
->
renderLink
(
'u:?form&r=12&xId=2345&L=1&type=99&gId=55|s:1'
);
$this
->
assertEquals
(
'<a href="
../../../../../../../../../../scratch/software/typo3/typo3_src-8.7.20/
index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
$this
->
assertEquals
(
'<a href="index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
// Sip: Page, s
$result
=
$link
->
renderLink
(
'p:form&r=12&xId=2345&L=1&type=99&gId=55|s'
);
$this
->
assertEquals
(
'<a href="
../../../../../../../../../../scratch/software/typo3/typo3_src-8.7.20/
index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
$this
->
assertEquals
(
'<a href="index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
// Sip: Page, s:0
$result
=
$link
->
renderLink
(
'p:form&r=12&xId=2345&L=1&type=99&gId=55|s:0'
);
...
...
@@ -1136,7 +1136,7 @@ class LinkTest extends TestCase {
// Sip: Page, s:1
$result
=
$link
->
renderLink
(
'p:form&r=12&xId=2345&L=1&type=99&gId=55|s:1'
);
$this
->
assertEquals
(
'<a href="
../../../../../../../../../../scratch/software/typo3/typo3_src-8.7.20/
index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
$this
->
assertEquals
(
'<a href="index.php?id=form&L=1&type=99&s=badcaffee1234" >index.php?id=form&L=1&type=99&s=badcaffee1234</a>'
,
$result
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment