You are here

public function AccessThemeBrowserTest::testNotEditAdminTheme in Theme permission 8

Same name and namespace in other branches
  1. 2.0.x 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\Functional

Code

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.');
}