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

testCreateContentDraftWithThirdArgument() public method

Test for the createContentDraft() method.
    public function testCreateContentDraftWithThirdArgument()
    {
        $time = time();
        /* BEGIN: Use Case */
        $contentService = $this->repository->getContentService();
        $content = $contentService->loadContent(4);
        $draftContent = $contentService->createContentDraft($content->contentInfo, $content->getVersionInfo(), $this->repository->getCurrentUser());
        /* END: Use Case */
        $this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\Content\\Content', $draftContent);
        return array('draftContent' => $draftContent, 'time' => $time);
    }
ContentBase