public function MailchimpListsWebhookTest::testDeleteWebhook in Mailchimp 2.x
Same name and namespace in other branches
- 8 modules/mailchimp_lists/src/Tests/MailchimpListsWebhookTest.php \Drupal\Tests\mailchimp_lists\Functional\MailchimpListsWebhookTest::testDeleteWebhook()
Tests deletion of a webhook.
File
- modules/
mailchimp_lists/ tests/ src/ Functional/ MailchimpListsWebhookTest.php, line 59
Class
- MailchimpListsWebhookTest
- Tests list webhook functionality.
Namespace
Drupal\Tests\mailchimp_lists\FunctionalCode
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.');
}