protected function SmsFrameworkQueueTest::setUp in SMS Framework 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/SmsFrameworkQueueTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkQueueTest::setUp()
- 2.1.x tests/src/Kernel/SmsFrameworkQueueTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkQueueTest::setUp()
Overrides SmsFrameworkKernelBase::setUp
File
- tests/
src/ Kernel/ SmsFrameworkQueueTest.php, line 53
Class
- SmsFrameworkQueueTest
- Tests behaviour of SMS Framework message queue.
Namespace
Drupal\Tests\sms\KernelCode
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');
}