|
@@ 5198-5207 (lines=10) @@
|
| 5195 |
|
|
| 5196 |
|
// check reloaded structures |
| 5197 |
|
$urlAliases = $handler->listURLAliasesForLocation($locationId); |
| 5198 |
|
foreach ($urlAliases as $urlAlias) { |
| 5199 |
|
self::assertNotContains($removeLanguage, $urlAlias->languageCodes); |
| 5200 |
|
foreach ($urlAlias->pathData as $pathData) { |
| 5201 |
|
self::assertNotContains($removeLanguage, $pathData['translations']); |
| 5202 |
|
foreach ($pathData['translations'] as $url) { |
| 5203 |
|
$lookupUrlAlias = $handler->lookup($url); |
| 5204 |
|
self::assertNotContains($removeLanguage, $lookupUrlAlias->languageCodes); |
| 5205 |
|
} |
| 5206 |
|
} |
| 5207 |
|
} |
| 5208 |
|
|
| 5209 |
|
// lookup removed URLs to check they're not found |
| 5210 |
|
foreach ($collectedUrls as $url => $isComposite) { |
|
@@ 5210-5222 (lines=13) @@
|
| 5207 |
|
} |
| 5208 |
|
|
| 5209 |
|
// lookup removed URLs to check they're not found |
| 5210 |
|
foreach ($collectedUrls as $url => $isComposite) { |
| 5211 |
|
$urlAlias = $handler->lookup($url); |
| 5212 |
|
if ($isComposite) { |
| 5213 |
|
// check if alias no longer refers to removed Translation |
| 5214 |
|
self::assertNotContains($removeLanguage, $urlAlias->languageCodes); |
| 5215 |
|
foreach ($urlAlias->pathData as $pathData) { |
| 5216 |
|
self::assertNotContains($removeLanguage, $pathData['translations']); |
| 5217 |
|
} |
| 5218 |
|
} else { |
| 5219 |
|
// check if non composite alias for removed translation is historized |
| 5220 |
|
self::assertTrue($urlAlias->isHistory); |
| 5221 |
|
} |
| 5222 |
|
} |
| 5223 |
|
} |
| 5224 |
|
} |
| 5225 |
|
|