public function SmsFrameworkMessageTestTrait::testAutomated in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testAutomated()
- 2.1.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testAutomated()
Tests adding recipients to SMS messages.
@covers ::setAutomated @covers ::isAutomated
File
- tests/
src/ Functional/ SmsFrameworkMessageTestTrait.php, line 242
Class
- SmsFrameworkMessageTestTrait
- SMS Message object test trait.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testAutomated() {
$sms_message1 = $this
->createSmsMessage();
// Default.
$this
->assertEquals(TRUE, $sms_message1
->isAutomated());
$sms_message2 = $this
->createSmsMessage();
$sms_message2
->setAutomated(FALSE);
$this
->assertEquals(FALSE, $sms_message2
->isAutomated());
}