You are here

public function SmsFrameworkMessageEntityTest::testCreatedTime in SMS Framework 2.x

Same name and namespace in other branches
  1. 8 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 189

Class

SmsFrameworkMessageEntityTest
Tests SMS message entity.

Namespace

Drupal\Tests\sms\Kernel

Code

public function testCreatedTime() {
  $sms_message = $this
    ->createSmsMessage();

  // This test is currently marked as risky because CreatedItem still relies
  // on the REQUEST_TIME constant value, which used to be safe to rely on
  // within tests. Skipped may be removed after
  // https://www.drupal.org/project/drupal/issues/2903549 is resolved.
  $this
    ->markTestSkipped();
  $this
    ->assertEquals('877098600', $sms_message
    ->getCreatedTime());
}