|
@@ 5474-5483 (lines=10) @@
|
| 5471 |
|
|
| 5472 |
|
// check reloaded structures |
| 5473 |
|
$urlAliases = $handler->listURLAliasesForLocation($locationId); |
| 5474 |
|
foreach ($urlAliases as $urlAlias) { |
| 5475 |
|
self::assertNotContains($removeLanguage, $urlAlias->languageCodes); |
| 5476 |
|
foreach ($urlAlias->pathData as $pathData) { |
| 5477 |
|
self::assertNotContains($removeLanguage, $pathData['translations']); |
| 5478 |
|
foreach ($pathData['translations'] as $url) { |
| 5479 |
|
$lookupUrlAlias = $handler->lookup($url); |
| 5480 |
|
self::assertNotContains($removeLanguage, $lookupUrlAlias->languageCodes); |
| 5481 |
|
} |
| 5482 |
|
} |
| 5483 |
|
} |
| 5484 |
|
|
| 5485 |
|
// lookup removed URLs to check they're not found |
| 5486 |
|
foreach ($collectedUrls as $url => $isComposite) { |
|
@@ 5486-5498 (lines=13) @@
|
| 5483 |
|
} |
| 5484 |
|
|
| 5485 |
|
// lookup removed URLs to check they're not found |
| 5486 |
|
foreach ($collectedUrls as $url => $isComposite) { |
| 5487 |
|
$urlAlias = $handler->lookup($url); |
| 5488 |
|
if ($isComposite) { |
| 5489 |
|
// check if alias no longer refers to removed Translation |
| 5490 |
|
self::assertNotContains($removeLanguage, $urlAlias->languageCodes); |
| 5491 |
|
foreach ($urlAlias->pathData as $pathData) { |
| 5492 |
|
self::assertNotContains($removeLanguage, $pathData['translations']); |
| 5493 |
|
} |
| 5494 |
|
} else { |
| 5495 |
|
// check if non composite alias for removed translation is historized |
| 5496 |
|
self::assertTrue($urlAlias->isHistory); |
| 5497 |
|
} |
| 5498 |
|
} |
| 5499 |
|
} |
| 5500 |
|
} |
| 5501 |
|
|