You are here

protected function SmsFrameworkGatewayEntityTest::createGateway in SMS Framework 8

Same name and namespace in other branches
  1. 2.x tests/src/Kernel/SmsFrameworkGatewayEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkGatewayEntityTest::createGateway()
  2. 2.1.x tests/src/Kernel/SmsFrameworkGatewayEntityTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkGatewayEntityTest::createGateway()

Create a new gateway.

Parameters

array $values: Custom values to pass to the gateway.

Return value

\Drupal\sms\Entity\SmsGatewayInterface An unsaved gateway config entity.

23 calls to SmsFrameworkGatewayEntityTest::createGateway()
SmsFrameworkGatewayEntityTest::testAutoCreateIncomingRoute in tests/src/Kernel/SmsFrameworkGatewayEntityTest.php
Tests 'incoming_route' annotation custom value.
SmsFrameworkGatewayEntityTest::testGetMaxRecipientsOutgoingCustom in tests/src/Kernel/SmsFrameworkGatewayEntityTest.php
Tests 'max outgoing recipients' annotation custom value.
SmsFrameworkGatewayEntityTest::testGetMaxRecipientsOutgoingDefault in tests/src/Kernel/SmsFrameworkGatewayEntityTest.php
Tests 'max outgoing recipients' annotation default value.
SmsFrameworkGatewayEntityTest::testGetRetentionDurationInvalidDirection in tests/src/Kernel/SmsFrameworkGatewayEntityTest.php
Tests a bad retention direction.
SmsFrameworkGatewayEntityTest::testIncomingRetentionDuration in tests/src/Kernel/SmsFrameworkGatewayEntityTest.php
Tests incoming retention setting.

... See full list

File

tests/src/Kernel/SmsFrameworkGatewayEntityTest.php, line 271

Class

SmsFrameworkGatewayEntityTest
Tests SMS Framework gateway entity.

Namespace

Drupal\Tests\sms\Kernel

Code

protected function createGateway(array $values = []) {
  return SmsGateway::create($values + [
    'plugin' => 'memory',
  ]);
}