You are here

protected function SmsFrameworkPhoneNumberWidgetTest::setUp in SMS Framework 8

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

Overrides SmsFrameworkBrowserTestBase::setUp

File

tests/src/Functional/SmsFrameworkPhoneNumberWidgetTest.php, line 25

Class

SmsFrameworkPhoneNumberWidgetTest
Tests phone numbers.

Namespace

Drupal\Tests\sms\Functional

Code

protected function setUp() {
  parent::setUp();
  $account = $this
    ->drupalCreateUser([
    'sms verify phone number',
    // Required to edit entity_test.
    'administer entity_test content',
  ]);
  $this
    ->drupalLogin($account);
}