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

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

Test for the createContentDraft() method.
public testCreateContentDraft ( ) : array
Результат array
    public function testCreateContentDraft()
    {
        $time = time();
        /* BEGIN: Use Case */
        $contentService = $this->repository->getContentService();
        $contentInfo = $contentService->loadContentInfo(4);
        $draftContent = $contentService->createContentDraft($contentInfo);
        /* END: Use Case */
        $this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\Content\\Content', $draftContent);
        return array('draftContent' => $draftContent, 'time' => $time);
    }
ContentBase