Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Adding userDocumentProperties key to template info return value
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmaron committed Jul 27, 2018
1 parent 35b5553 commit 99815b9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
21 changes: 11 additions & 10 deletions src/PropertyMap/TemplateInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
21 changes: 11 additions & 10 deletions test/PropertyMap/TemplateInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 99815b9

Please sign in to comment.