public function SmsFrameworkMessageTestTrait::testSenderNumber in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testSenderNumber()
- 2.1.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testSenderNumber()
Tests sender phone number.
@covers ::getSenderNumber @covers ::setSenderNumber
File
- tests/
src/ Functional/ SmsFrameworkMessageTestTrait.php, line 36
Class
- SmsFrameworkMessageTestTrait
- SMS Message object test trait.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testSenderNumber() {
$number = '1234567890';
$sms_message = $this
->createSmsMessage();
$sms_message
->setSenderNumber($number);
$this
->assertEquals($number, $sms_message
->getSenderNumber());
}