public function SmsFrameworkGatewayEntityTest::testIncomingRetentionDuration in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkGatewayEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkGatewayEntityTest::testIncomingRetentionDuration()
- 2.1.x tests/src/Kernel/SmsFrameworkGatewayEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkGatewayEntityTest::testIncomingRetentionDuration()
Tests incoming retention setting.
File
- tests/
src/ Kernel/ SmsFrameworkGatewayEntityTest.php, line 38
Class
- SmsFrameworkGatewayEntityTest
- Tests SMS Framework gateway entity.
Namespace
Drupal\Tests\sms\KernelCode
public function testIncomingRetentionDuration() {
$gateway = $this
->createGateway();
// Default value.
$this
->assertEquals(0, $gateway
->getRetentionDuration(Direction::INCOMING));
$gateway
->setRetentionDuration(Direction::INCOMING, 444);
$this
->assertEquals(444, $gateway
->getRetentionDuration(Direction::INCOMING));
}