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

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

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