diff --git a/tests/integration/Core/Repository/ContentService/LoadVersionInfoTest.php b/tests/integration/Core/Repository/ContentService/LoadVersionInfoTest.php index 7938367526..5c8a7b5771 100644 --- a/tests/integration/Core/Repository/ContentService/LoadVersionInfoTest.php +++ b/tests/integration/Core/Repository/ContentService/LoadVersionInfoTest.php @@ -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); + } }