You are here

public function RngSettingsFormTest::testSettingsMenuLink in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Tests/RngSettingsFormTest.php \Drupal\rng\Tests\RngSettingsFormTest::testSettingsMenuLink()
  2. 3.x src/Tests/RngSettingsFormTest.php \Drupal\rng\Tests\RngSettingsFormTest::testSettingsMenuLink()

Test settings form menu link.

File

src/Tests/RngSettingsFormTest.php, line 17

Class

RngSettingsFormTest
Tests RNG settings form.

Namespace

Drupal\rng\Tests

Code

public function testSettingsMenuLink() {
  $web_user = $this
    ->drupalCreateUser([
    'administer rng',
    'access administration pages',
  ]);
  $this
    ->drupalLogin($web_user);
  $this
    ->drupalGet('admin/config');
  $this
    ->assertLinkByHref(Url::fromRoute('rng.config.settings')
    ->toString());
}