eZ\Publish\Core\Repository\Tests\Service\Integration\TrashBase::testTrashReturnsNull PHP Метод

testTrashReturnsNull() публичный Метод

Test sending a location to trash.
    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);
    }