Skip to content

Commit

Permalink
Fix clone test following change in veda-consulting-company#554
Browse files Browse the repository at this point in the history
  • Loading branch information
seamuslee001 committed Nov 27, 2022
1 parent 9aa8423 commit 0b1d9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/CRM/Mosaico/MosaicoTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function testClone(): void {
$this->assertEquals('MosaicoTemplateTest bar', $clone['title']);
$this->assertEquals('versafix-1', $clone['base']);
$this->assertEquals('<p>hello</p>', $clone['html']);
$template = _civicrm_api3_mosaico_template_getDomainFrom(CRM_Utils_System::baseURL()) ? trim(parse_url(CRM_Utils_System::baseURL())['path'], '/') : CRM_Utils_System::baseURL();
$template = _civicrm_api3_mosaico_template_getDomainFrom(CRM_Utils_System::baseURL()) ? trim(parse_url(CRM_Utils_System::baseURL())['path'], '/') : NULL;
$this->assertEquals(json_encode(['foo' => 'bar', 'template' => $template]), $clone['metadata']);
$this->assertEquals(json_encode(['abc' => 'def']), $clone['content']);
}
Expand Down

0 comments on commit 0b1d9bc

Please sign in to comment.