There is some . legacy test code left in submitForm() in marketing_cloud_example, left over from when creating the unit tests.
Please delete the following lines:
$response = \Drupal::service('marketing_cloud_push.service')
->sendMessageToAll('OEl8ODow', [
"override" => true,
"messageText" => "New information available!",
"title" => "Boost your winnings!",
"subtitle" => "Check your app to see what else is in store.",
"mutable-content" => true,
"sendTime" => "2012-10-31 09 =>00",
"sound" => "MyFile.caf",
"badge" => "+1",
"openDirect" => "OD01",
"customKeys" => [
"keyA" => "keyA_value",
"keyB" => "keyB_value"
],
"customPayload" => [ "customA" => "customA_value" ]
]);
var_dump($response);die();
Comments
Comment #2
john_a commentedPatch submitted. please review
Comment #3
bandanasharma commented@john_a patch is apply successfully and changes reflected on the file it removes test code.
Comment #4
john_a commentedPatch applied, many thanks for the review @bandanasharma
Comment #5
john_a commented