class TestSmsMessage in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Unit/Message/SmsMessageTest.php \Drupal\Tests\sms\Unit\Message\TestSmsMessage
- 2.1.x tests/src/Unit/Message/SmsMessageTest.php \Drupal\Tests\sms\Unit\Message\TestSmsMessage
Mock class for testing.
Hierarchy
- class \Drupal\sms\Message\SmsMessage implements SmsMessageInterface
- class \Drupal\Tests\sms\Unit\Message\TestSmsMessage
Expanded class hierarchy of TestSmsMessage
File
- tests/
src/ Unit/ Message/ SmsMessageTest.php, line 35
Namespace
Drupal\Tests\sms\Unit\MessageView source
class TestSmsMessage extends SmsMessage {
/**
* {@inheritdoc}
*/
protected function uuidGenerator() {
return new Php();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SmsMessage:: |
protected | property | Whether this message was generated automatically. | |
SmsMessage:: |
protected | property | The direction of the message. | |
SmsMessage:: |
protected | property | The gateway for this message. | |
SmsMessage:: |
protected | property | The content of the message to be sent. | |
SmsMessage:: |
protected | property | Other options to be used for the SMS. | |
SmsMessage:: |
protected | property | The recipients of the message. | |
SmsMessage:: |
protected | property | The result associated with this SMS message. | |
SmsMessage:: |
protected | property | The sender's name. | |
SmsMessage:: |
protected | property | The senders' phone number. | |
SmsMessage:: |
protected | property | The UID of the creator of the SMS message. | |
SmsMessage:: |
protected | property | The unique identifier for this message. | |
SmsMessage:: |
public | function |
Adds a single recipient to the SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Adds multiple recipients to the SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Split this SMS message into new messages by chunks of recipients. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Get direction of the message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Get the gateway for this message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the message to be sent. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the option specified by the key $name. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the options for building or sending this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the list of recipients of this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the delivery report for a particular recipient. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the delivery reports for all recipients. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Get the result associated with this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the name of the sender of this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Get phone number of the sender. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the user who created the SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets the UUID of the SMS object. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Gets whether this SMS message was generated automatically. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Removes an option from this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Removes a single recipient from the SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Removes multiple recipients from the SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Sets whether this SMS message was generated automatically. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set direction of the message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set the gateway for this message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set the message to be sent. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Sets an option for this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set the result associated with this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set the name of the sender of this SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set the phone number of the sender. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function |
Set the user who created the SMS message. Overrides SmsMessageInterface:: |
|
SmsMessage:: |
public | function | Creates a new instance of an SMS message. | |
TestSmsMessage:: |
protected | function |
Gets the UUID generator. Overrides SmsMessage:: |