You are here

public function MailchimpListsWebhookTest::testDeleteWebhook in Mailchimp 8

Same name and namespace in other branches
  1. 2.x modules/mailchimp_lists/tests/src/Functional/MailchimpListsWebhookTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsWebhookTest::testDeleteWebhook()

Tests deletion of a webhook.

File

modules/mailchimp_lists/src/Tests/MailchimpListsWebhookTest.php, line 59

Class

MailchimpListsWebhookTest
Tests list webhook functionality.

Namespace

Drupal\Tests\mailchimp_lists\Functional

Code

public function testDeleteWebhook() {
  $list_id = '57afe96172';
  $url = 'http://example.org';
  $webhook_deleted = mailchimp_webhook_delete($list_id, $url);
  $this
    ->assertTrue($webhook_deleted, 'Tested webhook deletion.');
}