diff --git a/tests/Api/CampaignsTest.php b/tests/Api/CampaignsTest.php index e1237c9..36a5ea5 100644 --- a/tests/Api/CampaignsTest.php +++ b/tests/Api/CampaignsTest.php @@ -35,9 +35,9 @@ class CampaignsTest extends MauticApiTestCase 'emails' => [ 'item' => 'email', 'payload' => [ - 'name' => 'Company API test', - 'subject' => 'Company API test', - 'body' => 'Company API test', + 'name' => 'Company API test', + 'subject' => 'Company API test', + 'customHtml' => 'Company API test', ], ], 'companies' => [ diff --git a/tests/Api/MessagesTest.php b/tests/Api/MessagesTest.php index 67004e4..aa1c32e 100644 --- a/tests/Api/MessagesTest.php +++ b/tests/Api/MessagesTest.php @@ -49,10 +49,11 @@ protected function setUpPayloadClass() $api = $this->getContext($contextName); $response = $api->create( [ - 'name' => 'MM API test', // required for all - 'subject' => 'MM API test', // required for email - 'message' => 'test', // required for sms - 'heading' => 'test', // required for notifications + 'name' => 'MM API test', // required for all + 'subject' => 'MM API test', // required for email + 'customHtml' => 'test', // required for email + 'message' => 'test', // required for sms + 'heading' => 'test', // required for notifications ] ); $this->assertErrors($response);