public function RecipientGatewayEventTest::testRecipientConstructor 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::testRecipientConstructor()
- 2.1.x tests/src/Unit/Event/RecipientGatewayEventTest.php \Drupal\Tests\sms\Unit\Event\RecipientGatewayEventTest::testRecipientConstructor()
Tests recipient constructor.
@covers ::getRecipient
File
- tests/
src/ Unit/ Event/ RecipientGatewayEventTest.php, line 54
Class
- RecipientGatewayEventTest
- Unit Tests for SmsMessage.
Namespace
Drupal\Tests\sms\Unit\EventCode
public function testRecipientConstructor() {
$number = $this
->randomPhoneNumbers()[0];
$event = $this
->createEvent($number);
$this
->assertEquals($number, $event
->getRecipient(), 'Constructor recipient is set');
}