You are here

public function RecipientGatewayEventTest::createEvent in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Unit/Event/RecipientGatewayEventTest.php \Drupal\Tests\sms\Unit\Event\RecipientGatewayEventTest::createEvent()
  2. 2.1.x tests/src/Unit/Event/RecipientGatewayEventTest.php \Drupal\Tests\sms\Unit\Event\RecipientGatewayEventTest::createEvent()

Create a new event for testing.

Parameters

string $recipient: The recipient phone number.

Return value

\Drupal\sms\Event\RecipientGatewayEvent A new recipient gateway event instance.

6 calls to RecipientGatewayEventTest::createEvent()
RecipientGatewayEventTest::testGatewayRemove in tests/src/Unit/Event/RecipientGatewayEventTest.php
Tests removing gateway with both ID and priority.
RecipientGatewayEventTest::testGatewayRemoveAllSameId in tests/src/Unit/Event/RecipientGatewayEventTest.php
Tests removing gateways with same identifier.
RecipientGatewayEventTest::testGetGateways in tests/src/Unit/Event/RecipientGatewayEventTest.php
Tests gateway add and getter.
RecipientGatewayEventTest::testRecipient in tests/src/Unit/Event/RecipientGatewayEventTest.php
Tests recipient methods.
RecipientGatewayEventTest::testRecipientConstructor in tests/src/Unit/Event/RecipientGatewayEventTest.php
Tests recipient constructor.

... See full list

File

tests/src/Unit/Event/RecipientGatewayEventTest.php, line 183

Class

RecipientGatewayEventTest
Unit Tests for SmsMessage.

Namespace

Drupal\Tests\sms\Unit\Event

Code

public function createEvent($recipient) {
  return new RecipientGatewayEvent($recipient);
}