You are here

protected function SmsFrameworkPhoneNumberAdminTest::setUp in SMS Framework 8

Same name in this branch
  1. 8 tests/src/Functional/SmsFrameworkPhoneNumberAdminTest.php \Drupal\Tests\sms\Functional\SmsFrameworkPhoneNumberAdminTest::setUp()
  2. 8 tests/src/FunctionalJavascript/SmsFrameworkPhoneNumberAdminTest.php \Drupal\Tests\sms\FunctionalJavascript\SmsFrameworkPhoneNumberAdminTest::setUp()
Same name and namespace in other branches
  1. 2.x tests/src/FunctionalJavascript/SmsFrameworkPhoneNumberAdminTest.php \Drupal\Tests\sms\FunctionalJavascript\SmsFrameworkPhoneNumberAdminTest::setUp()
  2. 2.1.x tests/src/FunctionalJavascript/SmsFrameworkPhoneNumberAdminTest.php \Drupal\Tests\sms\FunctionalJavascript\SmsFrameworkPhoneNumberAdminTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/SmsFrameworkPhoneNumberAdminTest.php, line 33

Class

SmsFrameworkPhoneNumberAdminTest
Tests phone number administration user interface.

Namespace

Drupal\Tests\sms\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
  $this
    ->drupalPlaceBlock('page_title_block');
  $this
    ->drupalPlaceBlock('local_tasks_block');
  $this
    ->drupalPlaceBlock('local_actions_block');
  $account = $this
    ->drupalCreateUser([
    'administer smsframework',
  ]);
  $this
    ->drupalLogin($account);
}