public testDeleteContentType ( ) |
public function testDeleteContentType()
{
/* BEGIN: Use Case */
$contentTypeService = $this->repository->getContentTypeService();
$commentType = $contentTypeService->loadContentTypeByIdentifier('comment');
$contentTypeService->deleteContentType($commentType);
/* END: Use Case */
try {
$contentTypeService->loadContentType($commentType->id);
$this->fail('Content type could be loaded after delete.');
} catch (NotFoundException $e) {
// All fine
}
}