From 99815b940abb3b32afceb835caa6b2db45244486 Mon Sep 17 00:00:00 2001 From: Jonathan Maron Date: Fri, 27 Jul 2018 20:08:53 +0200 Subject: [PATCH] Adding userDocumentProperties key to template info return value --- src/PropertyMap/TemplateInfo.php | 21 +++++++++++---------- test/PropertyMap/TemplateInfoTest.php | 21 +++++++++++---------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/PropertyMap/TemplateInfo.php b/src/PropertyMap/TemplateInfo.php index 35abce1f..48d01fb2 100644 --- a/src/PropertyMap/TemplateInfo.php +++ b/src/PropertyMap/TemplateInfo.php @@ -27,16 +27,17 @@ class TemplateInfo extends AbstractPropertyMap public function __construct() { $map = [ - 'dateTimeFormat' => 'date_time_format', - 'mergeBlocks' => 'merge_blocks', - 'mergeFields' => 'merge_fields', - 'name' => 'name', - 'numericFormat' => 'numeric_format', - 'preserveFormatting' => 'preserve_formatting', - 'templateName' => 'template_name', - 'text' => 'text', - 'textAfter' => 'text_after', - 'textBefore' => 'text_before', + 'dateTimeFormat' => 'date_time_format', + 'mergeBlocks' => 'merge_blocks', + 'mergeFields' => 'merge_fields', + 'name' => 'name', + 'numericFormat' => 'numeric_format', + 'preserveFormatting' => 'preserve_formatting', + 'templateName' => 'template_name', + 'text' => 'text', + 'textAfter' => 'text_after', + 'textBefore' => 'text_before', + 'userDocumentProperties' => 'user_document_properties', ]; $this->setMap($map); diff --git a/test/PropertyMap/TemplateInfoTest.php b/test/PropertyMap/TemplateInfoTest.php index 051bbc2f..d2ea9013 100644 --- a/test/PropertyMap/TemplateInfoTest.php +++ b/test/PropertyMap/TemplateInfoTest.php @@ -17,16 +17,17 @@ public function setUp() public function testValid() { $expected = [ - 'dateTimeFormat' => 'date_time_format', - 'mergeBlocks' => 'merge_blocks', - 'mergeFields' => 'merge_fields', - 'name' => 'name', - 'numericFormat' => 'numeric_format', - 'preserveFormatting' => 'preserve_formatting', - 'templateName' => 'template_name', - 'text' => 'text', - 'textAfter' => 'text_after', - 'textBefore' => 'text_before', + 'dateTimeFormat' => 'date_time_format', + 'mergeBlocks' => 'merge_blocks', + 'mergeFields' => 'merge_fields', + 'name' => 'name', + 'numericFormat' => 'numeric_format', + 'preserveFormatting' => 'preserve_formatting', + 'templateName' => 'template_name', + 'text' => 'text', + 'textAfter' => 'text_after', + 'textBefore' => 'text_before', + 'userDocumentProperties' => 'user_document_properties', ]; $this->assertSame($expected, $this->propertyMap->getMap());