eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testCopyContentTypeThrowsUnauthorizedException PHP Method

testCopyContentTypeThrowsUnauthorizedException() public method

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