Skip to content

Commit

Permalink
MailingPreview - We don't need the [CiviMail Draft] prefix for in-b…
Browse files Browse the repository at this point in the history
…rowser previews
  • Loading branch information
totten committed Oct 3, 2021
1 parent 5744a82 commit 405d20b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ext/flexmailer/src/API/MailingPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public function save() {

};
$job->mailing_id = $mailing->id ?: NULL;
$job->is_test = 1;
$job->status = 'Complete';

$flexMailer = new FlexMailer(array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function testMailerPreview(): void {
$this->assertMaxIds($maxIDs);

$previewResult = $result['values'][$result['id']]['api.Mailing.preview'];
$this->assertEquals("[CiviMail Draft] Hello $displayName",
$this->assertEquals("Hello $displayName",
$previewResult['values']['subject']);

$this->assertStringContainsString("This is $displayName", $previewResult['values']['body_text']);
Expand Down Expand Up @@ -111,7 +111,7 @@ public function testMailerPreviewWithoutId(): void {
$previewResult = $this->callAPISuccess('mailing', 'preview', $params);
$this->assertMaxIds($maxIDs);

$this->assertEquals("[CiviMail Draft] Hello $displayName",
$this->assertEquals("Hello $displayName",
$previewResult['values']['subject']);

$this->assertStringContainsString("This is $displayName", $previewResult['values']['body_text']);
Expand Down

0 comments on commit 405d20b

Please sign in to comment.