You are here

public function SmsFrameworkMessageTestTrait::testSenderNumber in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testSenderNumber()
  2. 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\Functional

Code

public function testSenderNumber() {
  $number = '1234567890';
  $sms_message = $this
    ->createSmsMessage();
  $sms_message
    ->setSenderNumber($number);
  $this
    ->assertEquals($number, $sms_message
    ->getSenderNumber());
}