You are here

protected function SmsFrameworkProcessorTest::setUp in SMS Framework 8

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

Overrides SmsFrameworkKernelBase::setUp

File

tests/src/Kernel/SmsFrameworkProcessorTest.php, line 58

Class

SmsFrameworkProcessorTest
Tests functionality provided by the SMS message event subscriber.

Namespace

Drupal\Tests\sms\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('sms');
  $this
    ->installEntitySchema('sms_result');
  $this
    ->installEntitySchema('sms_report');
  $this->gatewayMemory = $this
    ->createMemoryGateway();
  $this->gatewayOutgoingResult = $this
    ->createMemoryGateway([
    'plugin' => 'memory_outgoing_result',
  ]);
  $this->smsStorage = $this->container
    ->get('entity_type.manager')
    ->getStorage('sms');
  $this->smsProvider = $this->container
    ->get('sms.provider');
}