You are here

protected function SmsFrameworkQueueTest::setUp in SMS Framework 2.x

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

Overrides SmsFrameworkKernelBase::setUp

File

tests/src/Kernel/SmsFrameworkQueueTest.php, line 55

Class

SmsFrameworkQueueTest
Tests behaviour of SMS Framework message queue.

Namespace

Drupal\Tests\sms\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('sms');
  $this
    ->installEntitySchema('sms_result');
  $this
    ->installEntitySchema('sms_report');
  $this->gateway = $this
    ->createMemoryGateway();
  $this->smsProvider = $this->container
    ->get('sms.provider');
  $this
    ->setFallbackGateway($this->gateway);
  $this->smsQueueProcessor = $this->container
    ->get('sms.queue');
  $this->cronService = $this->container
    ->get('cron');
}