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 */ }