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

Commit

Permalink
Improved tests; updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanmaron committed Aug 2, 2018
1 parent 3e9137d commit 9b1d304
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

## dev-master

## 1.8.0 - 2018-08-02

* Added `user_document_properties` key (containing an array) to the return value of `getTemplateInfo($templateName)`, following the addition of an [extension](https://www.textcontrol.com/blog/2018/07/27/retrieve-user-defined-properties-from-templates/) on the backend.
* Updated demo `get-template-info.php` to exemplify `user_document_properties` key and array.

## 1.7.0 - 2018-01-25

* Added method `uploadTemplateFromBase64($data, $templateName)` to upload templates stored in a string, in addition to on the filesystem.
Expand Down
2 changes: 0 additions & 2 deletions demo/get-template-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

$sourceFilename = REPORTING_CLOUD_DEMO_MEDIA_PATH . DIRECTORY_SEPARATOR . $templateName;

// Upload template, if not already in template storage

if (!$reportingCloud->templateExists($templateName)) {
$reportingCloud->uploadTemplate($sourceFilename);
}
Expand Down
4 changes: 4 additions & 0 deletions test/ReportingCloudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ public function testGetTemplateInfo()
$this->assertArrayHasKey('text_after', $response['merge_fields'][0]);
$this->assertArrayHasKey('text_before', $response['merge_fields'][0]);

$this->assertArrayHasKey('user_document_properties', $response);

$this->assertInternalType(PHPUnit_IsType::TYPE_ARRAY, $response['user_document_properties']);

$response = $this->reportingCloud->deleteTemplate($tempTemplateName);

$this->assertTrue($response);
Expand Down

0 comments on commit 9b1d304

Please sign in to comment.