public function SmsFrameworkMessageTestTrait::testOptionsSet in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testOptionsSet()
- 2.1.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testOptionsSet()
Tests recipients for SMS messages.
@covers ::setOption @covers ::getOptions
File
- tests/
src/ Functional/ SmsFrameworkMessageTestTrait.php, line 166
Class
- SmsFrameworkMessageTestTrait
- SMS Message object test trait.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testOptionsSet() {
$options = [
'foo' => $this
->randomMachineName(),
];
$sms_message1 = $this
->createSmsMessage();
$sms_message1
->setOption('foo', $options['foo']);
$this
->assertEquals($options, $sms_message1
->getOptions());
}