You are here

protected function SmsFrameworkMessageEntityTest::createSmsMessage in SMS Framework 8

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

Create a SMS message object for testing.

Parameters

array $values: An mixed array of values to pass when creating the SMS message entity.

Return value

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

11 calls to SmsFrameworkMessageEntityTest::createSmsMessage()
SmsFrameworkMessageEntityTest::testChunkByRecipientsEntity in tests/src/Kernel/SmsFrameworkMessageEntityTest.php
Tests chunked SMS messages are unsaved entities.
SmsFrameworkMessageEntityTest::testCreatedTime in tests/src/Kernel/SmsFrameworkMessageEntityTest.php
Tests created time.
SmsFrameworkMessageEntityTest::testDirectionEntityValidation in tests/src/Kernel/SmsFrameworkMessageEntityTest.php
Tests entity validation for direction property of SMS message entity.
SmsFrameworkMessageEntityTest::testGateway in tests/src/Kernel/SmsFrameworkMessageEntityTest.php
Tests gateway plugin of SMS messages.
SmsFrameworkMessageEntityTest::testMessageEmpty in tests/src/Kernel/SmsFrameworkMessageEntityTest.php
Tests validation violation when message is empty.

... See full list

File

tests/src/Kernel/SmsFrameworkMessageEntityTest.php, line 62

Class

SmsFrameworkMessageEntityTest
Tests SMS message entity.

Namespace

Drupal\Tests\sms\Kernel

Code

protected function createSmsMessage(array $values = []) {
  return SmsMessage::create($values);
}