You are here

public function SmsFrameworkMessageEntityTest::testCreatedTime in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/SmsFrameworkMessageEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkMessageEntityTest::testCreatedTime()
  2. 2.1.x tests/src/Kernel/SmsFrameworkMessageEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkMessageEntityTest::testCreatedTime()

Tests created time.

@covers ::getCreatedTime

File

tests/src/Kernel/SmsFrameworkMessageEntityTest.php, line 186

Class

SmsFrameworkMessageEntityTest
Tests SMS message entity.

Namespace

Drupal\Tests\sms\Kernel

Code

public function testCreatedTime() {
  $sms_message = $this
    ->createSmsMessage();
  $this
    ->assertEquals(REQUEST_TIME, $sms_message
    ->getCreatedTime());
}