public function testPublishContentTypeDraftSetsNameSchema() { $contentTypeService = $this->repository->getContentTypeService(); $typeCreateStruct = $contentTypeService->newContentTypeCreateStruct('new-type'); $typeCreateStruct->names = array('eng-GB' => 'Type title'); $typeCreateStruct->mainLanguageCode = 'eng-GB'; $titleFieldCreate = $contentTypeService->newFieldDefinitionCreateStruct('title', 'ezstring'); $titleFieldCreate->position = 1; $typeCreateStruct->addFieldDefinition($titleFieldCreate); $type = $contentTypeService->createContentType($typeCreateStruct, $this->createGroups()); $contentTypeService->publishContentTypeDraft($type); $loadedContentType = $contentTypeService->loadContentType($type->id); $this->assertEquals('<title>', $loadedContentType->nameSchema); }