You are here

public function SmsFrameworkDeliveryReportTestTrait::testStatusTime in SMS Framework 8

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

Tests status time.

@covers ::getStatusTime @covers ::setStatusTime

File

tests/src/Functional/SmsFrameworkDeliveryReportTestTrait.php, line 86

Class

SmsFrameworkDeliveryReportTestTrait
Provides common tests for SmsDeliveryReport object and entity classes.

Namespace

Drupal\Tests\sms\Functional

Code

public function testStatusTime() {
  $report = $this
    ->createDeliveryReport();
  $this
    ->assertNull($report
    ->getStatusTime(), 'Default value is NULL');
  $time = 123123123;
  $return = $report
    ->setStatusTime($time);
  $this
    ->assertTrue($return instanceof SmsDeliveryReportInterface);
  $this
    ->assertEquals($time, $report
    ->getStatusTime());
}