18 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
33 protected function setUp()
46 $this->assertSame($expected, $this->subject->encode($parts));
61 'additionalParams' =>
''
65 'full parameter usage' => [
69 'class' =>
'css-class',
70 'title' =>
'testtitle with whitespace',
71 'additionalParams' =>
'&x=y'
73 '19 _blank css-class "testtitle with whitespace" &x=y'
75 'crazy title and partial items only' => [
78 'title' =>
'a "link\\ ti\\"tle',
80 'foo - - "a \\"link\\\\ ti\\\\\\"tle"'
93 $this->assertSame($expected, $this->subject->decode($typoLink));
109 'additionalParams' =>
''
112 'simple id input' => [
119 'additionalParams' =>
''
122 'external url with target' => [
125 'url' =>
'www.web.de',
126 'target' =>
'_blank',
129 'additionalParams' =>
''
132 'page with class' => [
137 'class' =>
'css-class',
139 'additionalParams' =>
''
142 'page with title' => [
143 '42 - - "a link title"',
148 'title' =>
'a link title',
149 'additionalParams' =>
''
152 'page with crazy title' => [
153 '42 - - "a \\"link\\\\ ti\\\\\\"tle"',
158 'title' =>
'a "link\\ ti\\"tle',
159 'additionalParams' =>
''
162 'page with title and parameters' => [
163 '42 - - "a link title" &x=y',
168 'title' =>
'a link title',
169 'additionalParams' =>
'&x=y'
172 'page with complex title' => [
173 '42 - - "a \\"link\\" title with \\\\" &x=y',
178 'title' =>
'a "link" title with \\',
179 'additionalParams' =>
'&x=y'
182 'full parameter usage' => [
183 '19 _blank css-class "testtitle with whitespace" &X=y',
186 'target' =>
'_blank',
187 'class' =>
'css-class',
188 'title' =>
'testtitle with whitespace',
189 'additionalParams' =>
'&X=y'