public function RecipientGatewayEventTest::testRecipient in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Unit/Event/RecipientGatewayEventTest.php \Drupal\Tests\sms\Unit\Event\RecipientGatewayEventTest::testRecipient()
- 2.1.x tests/src/Unit/Event/RecipientGatewayEventTest.php \Drupal\Tests\sms\Unit\Event\RecipientGatewayEventTest::testRecipient()
Tests recipient methods.
@covers ::getRecipient @covers ::setRecipient
File
- tests/
src/ Unit/ Event/ RecipientGatewayEventTest.php, line 66
Class
- RecipientGatewayEventTest
- Unit Tests for SmsMessage.
Namespace
Drupal\Tests\sms\Unit\EventCode
public function testRecipient() {
$event = $this
->createEvent($this
->randomPhoneNumbers()[0]);
$number = $this
->randomPhoneNumbers()[0];
$event
->setRecipient($number);
$this
->assertEquals($number, $event
->getRecipient(), 'Recipient is set via setRecipient');
}