public function WebhooksTest::testDeliveryIdUuid in Webhooks 8
Test webhook delivery id matches uuid.
File
- tests/
src/ Functional/ WebhooksTest.php, line 309
Class
- WebhooksTest
- Test description.
Namespace
Drupal\Tests\webhooks\FunctionalCode
public function testDeliveryIdUuid() {
$webhook_config = WebhookConfig::load(self::WEBHOOK_ID_OUTGOING);
$webhook = new Webhook($this->payload);
$this->webhookService
->send($webhook_config, $webhook);
/** @var \Drupal\webhooks\Webhook $webhook_received */
$webhook_received = $this->state
->get('onWebhookReceive_webhook');
$this
->assertEqual($webhook_received
->getUuid(), $webhook
->getUuid());
}