eZ\Publish\Core\Repository\Tests\Service\Integration\ContentTypeBase::testDeleteContentTypeGroupThrowsInvalidArgumentException PHP Метод

testDeleteContentTypeGroupThrowsInvalidArgumentException() публичный Метод

Test for the deleteContentTypeGroup() method.
    public function testDeleteContentTypeGroupThrowsInvalidArgumentException()
    {
        $this->createContentTypeGroup();
        /* BEGIN: Use Case */
        $contentTypeService = $this->repository->getContentTypeService();
        // "Content" group
        $contentGroup = $contentTypeService->loadContentTypeGroup(1);
        // Throws exception because group content type has instances
        $contentTypeService->deleteContentTypeGroup($contentGroup);
        /* END: Use Case */
    }
ContentTypeBase