Skip to content

Commit

Permalink
Added test for LoadVersionInfoListByContentInfo on location 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszdebinski committed Sep 20, 2023
1 parent c6e060b commit afa79ed
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,18 @@ public function testLoadVersionInfoListByContentInfo(): void
self::assertEquals($loadedVersionInfo, $versionInfo);
}
}

public function testLoadVersionInfoListByContentInfoForTopLevelNode(): void
{
$contentService = self::getContentService();
$locationService = self::getLocationService();

$location = $locationService->loadLocation(1);

$versionInfoList = $contentService->loadVersionInfoListByContentInfo(
[$location->getContentInfo()]
);

self::assertCount(0, $versionInfoList);
}
}

0 comments on commit afa79ed

Please sign in to comment.