You are here

public function SmsFrameworkMessageTestTrait::testUuid in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testUuid()
  2. 2.1.x tests/src/Functional/SmsFrameworkMessageTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkMessageTestTrait::testUuid()

Tests UUIDs for SMS messages.

@covers ::getUuid

File

tests/src/Functional/SmsFrameworkMessageTestTrait.php, line 258

Class

SmsFrameworkMessageTestTrait
SMS Message object test trait.

Namespace

Drupal\Tests\sms\Functional

Code

public function testUuid() {
  $sms1 = $this
    ->createSmsMessage();
  $sms2 = $this
    ->createSmsMessage();

  // Test that UUIDs are different.
  $this
    ->assertNotEquals($sms1
    ->getUuid(), $sms2
    ->getUuid());
}