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

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

Test for the createContentTypeDraft() method.
    public function testCreateContentTypeDraftThrowsUnauthorizedException()
    {
        $publishedType = $this->createPublishedContentType();
        $contentTypeService = $this->repository->getContentTypeService();
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentTypeService->createContentTypeDraft($publishedType);
    }
ContentTypeBase