Commit 0b1e336a authored by Marc Egger's avatar Marc Egger
Browse files

Revert "LinkTest.php"

parent dfe8e7d3
Pipeline #1181 passed with stage
in 1 minute and 39 seconds
...@@ -1116,19 +1116,19 @@ class LinkTest extends TestCase { ...@@ -1116,19 +1116,19 @@ class LinkTest extends TestCase {
// Sip: URL, s // Sip: URL, s
$result = $link->renderLink('u:?form&r=12&xId=2345&L=1&type=99&gId=55|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 // Sip: URL, s:0
$result = $link->renderLink('u:?form&r=12&xId=2345&L=1&type=99&gId=55|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 // Sip: URL, s:1
$result = $link->renderLink('u:?form&r=12&xId=2345&L=1&type=99&gId=55|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 // Sip: Page, s
$result = $link->renderLink('p:form&r=12&xId=2345&L=1&type=99&gId=55|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 // Sip: Page, s:0
$result = $link->renderLink('p:form&r=12&xId=2345&L=1&type=99&gId=55|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 { ...@@ -1136,7 +1136,7 @@ class LinkTest extends TestCase {
// Sip: Page, s:1 // Sip: Page, s:1
$result = $link->renderLink('p:form&r=12&xId=2345&L=1&type=99&gId=55|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);
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment