You are here

public function SmsFrameworkDeliveryReportTestTrait::testTimeQueued in SMS Framework 8

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

Tests time queued.

@covers ::getTimeQueued @covers ::setTimeQueued

File

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

Class

SmsFrameworkDeliveryReportTestTrait
Provides common tests for SmsDeliveryReport object and entity classes.

Namespace

Drupal\Tests\sms\Functional

Code

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