You are here

protected function SmsFrameworkUserTest::setUp in SMS Framework 2.1.x

Same name and namespace in other branches
  1. 8 modules/sms_user/tests/src/Kernel/SmsFrameworkUserTest.php \Drupal\Tests\sms_user\Kernel\SmsFrameworkUserTest::setUp()
  2. 2.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 50

Class

SmsFrameworkUserTest
General tests for SMS User.

Namespace

Drupal\Tests\sms_user\Kernel

Code

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);
}