Skip to content

Commit

Permalink
IBX-3957: Fixed issues found by PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Apr 30, 2024
1 parent 61a900d commit d1663c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/Core/Repository/URLAliasServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,7 @@ public function testRenamingParentContentDoesntBreakChildAlias(): void

// 2. Create child folder
$child = $this->createFolder([$languageCode => 'b'], $folderLocationId);
/** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location $childLocation */
$childLocation = $child->getVersionInfo()->getContentInfo()->getMainLocation();
$childLocationId = $childLocation->id;

Expand All @@ -1515,6 +1516,7 @@ public function testRenamingParentContentDoesntBreakChildAlias(): void
$contentService->publishVersion($renamedFolder->getVersionInfo());

// Loading aliases shouldn't throw a `BadStateException`
/** @var array<int, \Ibexa\Contracts\Core\Repository\Values\Content\URLAlias> $childLocationAliases */
$childLocationAliases = $urlAliasService->listLocationAliases($childLocation);

self::assertCount(1, $childLocationAliases);
Expand Down

0 comments on commit d1663c4

Please sign in to comment.