You are here

public function SmsFrameworkUserMenuLinksTest::testDynamicMenuLinks in SMS Framework 8

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

Tests dynamic menu links are found.

File

modules/sms_user/tests/src/Functional/SmsFrameworkUserMenuLinksTest.php, line 35

Class

SmsFrameworkUserMenuLinksTest
Tests dynamically created SMS User menu links.

Namespace

Drupal\Tests\sms_user\Functional

Code

public function testDynamicMenuLinks() {
  entity_get_form_display('user', 'user', 'default')
    ->save();
  $this
    ->createPhoneNumberSettings('user', 'user');
  $this
    ->drupalGet(Url::fromRoute('user.admin_index'));
  $this
    ->assertLink('User phone number');
}