public function testCreateContentTypeThrowsInvalidArgumentExceptionGroupsEmpty() { /* BEGIN: Use Case */ $contentTypeService = $this->repository->getContentTypeService(); $typeCreateStruct = $contentTypeService->newContentTypeCreateStruct('new-type'); // Thrown an exception because array of content type groups is empty $type = $contentTypeService->createContentType($typeCreateStruct, array()); /* END: Use Case */ }