eZ\Publish\Core\Repository\Tests\Service\Integration\ContentBase::testDeleteVersionThrowsUnauthorizedException PHP Method

testDeleteVersionThrowsUnauthorizedException() public method

Test for the deleteVersion() method.
    public function testDeleteVersionThrowsUnauthorizedException()
    {
        $contentService = $this->repository->getContentService();
        $contentInfo = $contentService->loadContentInfo(4);
        // Create a version to delete
        $draftContent = $contentService->createContentDraft($contentInfo);
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentService->deleteVersion($draftContent->versionInfo);
    }
ContentBase