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();
CommentFileSizeAuthor
#2 2972626-1.patch1.47 KBjohn_a

Comments

john_a created an issue. See original summary.

john_a’s picture

Status: Active » Needs review
StatusFileSize
new1.47 KB

Patch submitted. please review

bandanasharma’s picture

Status: Needs review » Reviewed & tested by the community

@john_a patch is apply successfully and changes reflected on the file it removes test code.

john_a’s picture

Status: Reviewed & tested by the community » Fixed

Patch applied, many thanks for the review @bandanasharma

john_a’s picture

Status: Fixed » Closed (fixed)