eZ\Publish\Core\Repository\Tests\Service\Integration\ContentBase::testLoadVersionsThrowsUnauthorizedException PHP Метод

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

Test for the loadVersions() method.
    public function testLoadVersionsThrowsUnauthorizedException()
    {
        $contentService = $this->repository->getContentService();
        $contentInfo = $contentService->loadContentInfo(4);
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentService->loadVersions($contentInfo);
    }
ContentBase