public function InitialStateTest::testModuleConfigureLink in Style Switcher 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/InitialStateTest.php \Drupal\Tests\styleswitcher\Functional\InitialStateTest::testModuleConfigureLink()
Tests the Configure link for the Style Switcher exists.
File
- tests/
src/ Functional/ InitialStateTest.php, line 96
Class
- InitialStateTest
- Tests the module in its initial state.
Namespace
Drupal\Tests\styleswitcher\FunctionalCode
public function testModuleConfigureLink() {
$assert = $this
->assertSession();
/** @var string[] $permissions */
/** @var string $path */
foreach ($this
->providerModuleConfigureLink() as [
$permissions,
$path,
]) {
$user = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($user);
$this
->drupalGet($path);
$assert
->linkByHrefExists('/admin/config/user-interface/styleswitcher');
$this
->drupalLogout();
}
}