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

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

Test for the loadContentTypeDraft() method.
public testLoadContentTypeDraft ( ) : array
Результат array
    public function testLoadContentTypeDraft()
    {
        $storedContentTypeDraft = $this->createDraftContentType();
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        $loadedContentTypeDraft = $contentTypeService->loadContentTypeDraft($storedContentTypeDraft->id);
        /* END: Use Case */
        $this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentTypeDraft', $loadedContentTypeDraft);
        return array('expected' => $storedContentTypeDraft, 'actual' => $loadedContentTypeDraft);
    }
ContentTypeBase