public testLoadContentTypeByIdentifier ( ) : array | ||
return | array |
public function testLoadContentTypeByIdentifier()
{
$storedContentType = $this->createPublishedContentType();
/* BEGIN: Use Case */
$contentTypeService = $this->repository->getContentTypeService();
$loadedContentType = $contentTypeService->loadContentTypeByIdentifier($storedContentType->identifier);
/* END: Use Case */
$this->assertInstanceOf('eZ\\Publish\\API\\Repository\\Values\\ContentType\\ContentType', $loadedContentType);
return array('expected' => $storedContentType, 'actual' => $loadedContentType);
}