eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testDeleteContentTypeThrowsUnauthorizedException PHP Метод

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

Test for the deleteContentType() method.
    public function testDeleteContentTypeThrowsUnauthorizedException()
    {
        $contentTypeService = $this->repository->getContentTypeService();
        $commentType = $contentTypeService->loadContentTypeByIdentifier('comment');
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentTypeService->deleteContentType($commentType);
    }
ContentTypeBase