public testTrashReturnsNull ( ) |
public function testTrashReturnsNull()
{
$contentService = $this->repository->getContentService();
$locationService = $this->repository->getLocationService();
$trashService = $this->repository->getTrashService();
// Create additional location to trash
$location = $locationService->createLocation($contentService->loadContentInfo(42), new LocationCreateStruct(array('parentLocationId' => 2)));
$trashItem = $trashService->trash($location);
self::assertNull($trashItem);
}