public function SmsFrameworkDeliveryReportTestTrait::testStatusTime in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 tests/src/Functional/SmsFrameworkDeliveryReportTestTrait.php \Drupal\Tests\sms\Functional\SmsFrameworkDeliveryReportTestTrait::testStatusTime()
- 2.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 88
Class
- SmsFrameworkDeliveryReportTestTrait
- Provides common tests for SmsDeliveryReport object and entity classes.
Namespace
Drupal\Tests\sms\FunctionalCode
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());
}