protected function SmsFrameworkProcessorTest::setUp in SMS Framework 2.1.x
Same name and namespace in other branches
- 8 tests/src/Kernel/SmsFrameworkProcessorTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkProcessorTest::setUp()
- 2.x tests/src/Kernel/SmsFrameworkProcessorTest.php \Drupal\Tests\sms\Kernel\SmsFrameworkProcessorTest::setUp()
Overrides SmsFrameworkKernelBase::setUp
File
- tests/
src/ Kernel/ SmsFrameworkProcessorTest.php, line 60
Class
- SmsFrameworkProcessorTest
- Tests functionality provided by the SMS message event subscriber.
Namespace
Drupal\Tests\sms\KernelCode
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');
}