public function AccessThemeBrowserTest::testNotEditAdminTheme in Theme permission 2.0.x
Same name and namespace in other branches
- 8 tests/src/Functional/AccessThemeBrowserTest.php \Drupal\Tests\theme_permission\Functional\AccessThemeBrowserTest::testNotEditAdminTheme()
Check if the user not accesses "Edit Administration theme".
File
- tests/
src/ Functional/ AccessThemeBrowserTest.php, line 46
Class
- AccessThemeBrowserTest
- Administration theme access check.
Namespace
Drupal\Tests\theme_permission\FunctionalCode
public function testNotEditAdminTheme() {
$this
->userLogin();
$this
->drupalGet(Url::fromRoute('system.themes_page'));
$this
->assertSession()
->pageTextNotContains('Choose "Default theme" to always use the same theme as the rest of the site.');
}