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

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

Test for the addRelation() method.
    public function testAddRelationThrowsUnauthorizedException()
    {
        list($contentDraft, $contentType) = $this->createTestContent();
        $contentService = $this->repository->getContentService();
        $mediaContentInfo = $contentService->loadContentInfoByRemoteId('a6e35cbcb7cd6ae4b691f3eee30cd262');
        // Set anonymous as current user
        $this->repository->setCurrentUser($this->getStubbedUser(10));
        $contentService->addRelation($contentDraft->getVersionInfo(), $mediaContentInfo);
    }
ContentBase