You are here

protected function SmsMessageTest::createSmsMessage in SMS Framework 8

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

Create a SMS message object for testing.

Return value

\Drupal\sms\Message\SmsMessageInterface A SMS message object for testing.

File

tests/src/Unit/Message/SmsMessageTest.php, line 26

Class

SmsMessageTest
Unit Tests for SmsMessage.

Namespace

Drupal\Tests\sms\Unit\Message

Code

protected function createSmsMessage() {
  return new TestSmsMessage();
}