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);
}