public function testFindTrashItemsAndEmptyTrash()
{
// @todo: remove creating test location when field types are fully functional
$newLocationId = $this->createTestContentLocation(5)->contentInfo->mainLocationId;
$locationService = $this->repository->getLocationService();
$trashService = $this->repository->getTrashService();
$searchResult = $trashService->findTrashItems(new Query());
$countBeforeTrashing = $searchResult->count;
$location = $locationService->loadLocation($newLocationId);
$trashService->trash($location);
$searchResult = $trashService->findTrashItems(new Query());
$countAfterTrashing = $searchResult->count;
self::assertGreaterThan($countBeforeTrashing, $countAfterTrashing);
$trashService->emptyTrash();
$searchResult = $trashService->findTrashItems(new Query());
self::assertEquals(0, $searchResult->count);
}