public function SmsFrameworkMessageTestTrait::testDirection in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testDirection()
- 2.1.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testDirection()
Tests direction of SMS messages.
@covers ::getDirection @covers ::setDirection
File
- tests/
src/ Functional/ SmsFrameworkMessageTestTrait.php, line 150
Class
- SmsFrameworkMessageTestTrait
- SMS Message object test trait.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testDirection() {
$sms_message2 = $this
->createSmsMessage()
->setDirection(Direction::OUTGOING);
$this
->assertEquals(Direction::OUTGOING, $sms_message2
->getDirection());
$sms_message3 = $this
->createSmsMessage()
->setDirection(Direction::INCOMING);
$this
->assertEquals(Direction::INCOMING, $sms_message3
->getDirection());
}