eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testCopyContentType PHP Метод

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

Test for the copyContentType() method.
public testCopyContentType ( ) : array
Результат array
    public function testCopyContentType()
    {
        $time = time();
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        $commentType = $contentTypeService->loadContentTypeByIdentifier('comment');
        $copiedCommentType = $contentTypeService->copyContentType($commentType);
        /* END: Use Case */
        return array('originalType' => $commentType, 'copiedType' => $copiedCommentType, 'time' => $time, 'userId' => $this->repository->getCurrentUserReference()->getUserId());
    }
ContentTypeBase