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

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

Test for the addRelation() method.
    public function testAddRelationThrowsBadStateException()
    {
        $contentService = $this->repository->getContentService();
        list($contentDraft, $contentType) = $this->createTestContent();
        $publishedContent = $contentService->publishVersion($contentDraft->versionInfo);
        $mediaContentInfo = $contentService->loadContentInfoByRemoteId('a6e35cbcb7cd6ae4b691f3eee30cd262');
        $contentService->addRelation($publishedContent->getVersionInfo(), $mediaContentInfo);
    }
ContentBase