@@ 5535-5544 (lines=10) @@ | ||
5532 | ||
5533 | // check reloaded structures |
|
5534 | $urlAliases = $handler->listURLAliasesForLocation($locationId); |
|
5535 | foreach ($urlAliases as $urlAlias) { |
|
5536 | self::assertNotContains($removeLanguage, $urlAlias->languageCodes); |
|
5537 | foreach ($urlAlias->pathData as $pathData) { |
|
5538 | self::assertNotContains($removeLanguage, $pathData['translations']); |
|
5539 | foreach ($pathData['translations'] as $url) { |
|
5540 | $lookupUrlAlias = $handler->lookup($url); |
|
5541 | self::assertNotContains($removeLanguage, $lookupUrlAlias->languageCodes); |
|
5542 | } |
|
5543 | } |
|
5544 | } |
|
5545 | ||
5546 | // lookup removed URLs to check they're not found |
|
5547 | foreach ($collectedUrls as $url => $isComposite) { |
|
@@ 5547-5559 (lines=13) @@ | ||
5544 | } |
|
5545 | ||
5546 | // lookup removed URLs to check they're not found |
|
5547 | foreach ($collectedUrls as $url => $isComposite) { |
|
5548 | $urlAlias = $handler->lookup($url); |
|
5549 | if ($isComposite) { |
|
5550 | // check if alias no longer refers to removed Translation |
|
5551 | self::assertNotContains($removeLanguage, $urlAlias->languageCodes); |
|
5552 | foreach ($urlAlias->pathData as $pathData) { |
|
5553 | self::assertNotContains($removeLanguage, $pathData['translations']); |
|
5554 | } |
|
5555 | } else { |
|
5556 | // check if non composite alias for removed translation is historized |
|
5557 | self::assertTrue($urlAlias->isHistory); |
|
5558 | } |
|
5559 | } |
|
5560 | } |
|
5561 | } |
|
5562 |