eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testLoadContentTypeByIdentifier PHP Method

testLoadContentTypeByIdentifier() public method

Test for the loadContentTypeByIdentifier() method.
    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);
    }
ContentTypeBase