public function SmsFrameworkMessageTestTrait::testUid in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testUid()
- 2.1.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testUid()
Tests adding recipients to SMS messages.
@covers ::getUid @covers ::setUid
1 call to SmsFrameworkMessageTestTrait::testUid()
- SmsFrameworkMessageEntityTest::testUid in tests/
src/ Kernel/ SmsFrameworkMessageEntityTest.php
File
- tests/
src/ Functional/ SmsFrameworkMessageTestTrait.php, line 224
Class
- SmsFrameworkMessageTestTrait
- SMS Message object test trait.
Namespace
Drupal\Tests\sms\FunctionalCode
public function testUid() {
$sms_message1 = $this
->createSmsMessage();
// Default value.
$this
->assertEquals($sms_message1
->getUid(), NULL);
// Set value.
$sms_message2 = $this
->createSmsMessage();
$sms_message2
->setUid(22);
$this
->assertEquals(22, $sms_message2
->getUid());
}