You are here

protected function SmsFrameworkUserActiveHoursServiceTest::setUp in SMS Framework 8

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

Overrides SmsFrameworkKernelBase::setUp

File

modules/sms_user/tests/src/Kernel/SmsFrameworkUserActiveHoursServiceTest.php, line 49

Class

SmsFrameworkUserActiveHoursServiceTest
Tests active hours service.

Namespace

Drupal\Tests\sms_user\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->activeHoursService = $this->container
    ->get('sms_user.active_hours');
  $this->smsProvider = $this->container
    ->get('sms.provider');
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('sms');
}