protected function SmsFrameworkUserTest::setUp in SMS Framework 8
Same name and namespace in other branches
- 2.x modules/sms_user/tests/src/Kernel/SmsFrameworkUserTest.php \Drupal\Tests\sms_user\Kernel\SmsFrameworkUserTest::setUp()
- 2.1.x modules/sms_user/tests/src/Kernel/SmsFrameworkUserTest.php \Drupal\Tests\sms_user\Kernel\SmsFrameworkUserTest::setUp()
Overrides SmsFrameworkKernelBase::setUp
File
- modules/
sms_user/ tests/ src/ Kernel/ SmsFrameworkUserTest.php, line 48
Class
- SmsFrameworkUserTest
- General tests for SMS User.
Namespace
Drupal\Tests\sms_user\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('system', [
'sequences',
]);
$this
->installConfig('sms_user');
$this
->installEntitySchema('user');
$this
->installEntitySchema('sms');
$this
->installEntitySchema('sms_phone_number_verification');
$this->smsProvider = $this->container
->get('sms.provider');
$this->gateway = $this
->createMemoryGateway([
'skip_queue' => TRUE,
]);
$this
->setFallbackGateway($this->gateway);
}