Skip to content

Commit

Permalink
IBX-8418: Fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Oct 2, 2024
1 parent 4cccad9 commit cfb9c76
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions tests/integration/Core/Repository/TrashService/TrashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,13 @@ public function testTrashLocationDeletesChildrenDrafts(): void

$trashService->trash($locationToTrash);

$draftIds = [
$contentInfos = $contentService->loadContentInfoList([
$draft1->getId(),
$draft2->getId(),
$draft3->getId(),
$draftSecondDepth->getId(),
];
]);

foreach ($draftIds as $draftId) {
try {
$contentService->loadContentInfo($draftId);
$this->fail(
sprintf('Expected NotFoundException not thrown for draft ID = %d', $draftId),
);
} catch (NotFoundException $e) {
self::assertInstanceOf(NotFoundException::class, $e);
}
}
self::assertEmpty($contentInfos);
}
}

0 comments on commit cfb9c76

Please sign in to comment.