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

testLoadRelations() public method

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