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

testCreateContentTypeThrowsInvalidArgumentExceptionGroupsEmpty() public method

Test for the createContentTypeGroup() method.
    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 */
    }
ContentTypeBase