2 declare(strict_types = 1);
19 use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
31 'simple page - old style' => [
42 'page with type - old style' => [
49 't3://page?uid=13&type=31'
51 'page with type and fragment - old style' => [
57 'fragment' =>
'uncool'
59 't3://page?uid=13&type=31#uncool'
61 'page with type and parameters and fragment - old style' => [
62 '13,31?unbel=ievable#uncool',
67 'parameters' =>
'unbel=ievable',
68 'fragment' =>
'uncool'
70 't3://page?uid=13&type=31&unbel=ievable#uncool'
72 'page with alias - old style' => [
76 'pagealias' =>
'alias13'
78 't3://page?alias=alias13'
81 'http://www.have.you/ever?did=this',
84 'url' =>
'http://www.have.you/ever?did=this'
86 'http://www.have.you/ever?did=this'
88 'http URL without scheme' => [
89 'www.have.you/ever?did=this',
92 'url' =>
'http://www.have.you/ever?did=this'
94 'http://www.have.you/ever?did=this'
97 'https://www.have.you/ever?did=this',
100 'url' =>
'https://www.have.you/ever?did=this'
102 'https://www.have.you/ever?did=this'
104 'https URL with port' => [
105 'https://www.have.you:8088/ever?did=this',
108 'url' =>
'https://www.have.you:8088/ever?did=this'
110 'https://www.have.you:8088/ever?did=this'
113 'ftp://www.have.you/ever?did=this',
116 'url' =>
'ftp://www.have.you/ever?did=this'
118 'ftp://www.have.you/ever?did=this'
121 'afp://www.have.you/ever?did=this',
124 'url' =>
'afp://www.have.you/ever?did=this'
126 'afp://www.have.you/ever?did=this'
129 'sftp://nice:andsecret@www.have.you:23/ever?did=this',
132 'url' =>
'sftp://nice:andsecret@www.have.you:23/ever?did=this'
134 'sftp://nice:andsecret@www.have.you:23/ever?did=this'
136 'email with protocol' => [
137 'mailto:one@love.com',
140 'email' =>
'one@love.com'
142 'mailto:one@love.com'
144 'email without protocol' => [
148 'email' =>
'one@love.com'
150 'mailto:one@love.com'
152 'email without protocol and subject parameter' => [
153 'email@mail.mail?subject=Anfrage:%20Text%20Text%20Lösungen',
156 'email' =>
'email@mail.mail?subject=Anfrage:%20Text%20Text%20Lösungen'
158 'mailto:email@mail.mail?subject=Anfrage:%20Text%20Text%20Lösungen'
160 'current page - cool style' => [
161 't3://page?uid=current',
164 'pageuid' =>
'current'
166 't3://page?uid=current'
168 'current empty page - cool style' => [
172 'pageuid' =>
'current'
174 't3://page?uid=current'
176 'simple page - cool style' => [
184 'page with alias - cool style' => [
185 't3://page?alias=alias13',
188 'pagealias' =>
'alias13'
190 't3://page?alias=alias13'
192 'page with alias and type - cool style' => [
193 't3://page?alias=alias13&type=31',
196 'pagealias' =>
'alias13',
199 't3://page?alias=alias13&type=31'
201 'page with alias and parameters - cool style' => [
202 't3://page?alias=alias13&my=additional¶meter=that&are=nice',
205 'pagealias' =>
'alias13',
206 'parameters' =>
'my=additional¶meter=that&are=nice'
208 't3://page?alias=alias13&my=additional¶meter=that&are=nice',
210 'page with alias and parameters and fragment - cool style' => [
211 't3://page?alias=alias13&my=additional¶meter=that&are=nice#again',
214 'pagealias' =>
'alias13',
215 'parameters' =>
'my=additional¶meter=that&are=nice',
216 'fragment' =>
'again'
218 't3://page?alias=alias13&my=additional¶meter=that&are=nice#again',
235 $this->assertEquals($expected, $subject->resolve($input));
250 $this->assertEquals($expected, $subject->asString($parameters));