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

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

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