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

testDeleteContentTypeThrowsBadStateException() public method

Test for the deleteContentType() method.
    public function testDeleteContentTypeThrowsBadStateException()
    {
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        $commentType = $contentTypeService->loadContentTypeByIdentifier('folder');
        // Throws an exception because folder type still has content instances
        $contentTypeService->deleteContentType($commentType);
        /* END: Use Case */
    }
ContentTypeBase