public function AccessThemeBrowserTest::testIfAccessThemeBartik in Theme permission 8
Same name and namespace in other branches
- 2.0.x tests/src/Functional/AccessThemeBrowserTest.php \Drupal\Tests\theme_permission\Functional\AccessThemeBrowserTest::testIfAccessThemeBartik()
Check if user access to Bartik theme.
File
- tests/
src/ Functional/ AccessThemeBrowserTest.php, line 19
Class
- AccessThemeBrowserTest
- Administration theme access check.
Namespace
Drupal\Tests\theme_permission\FunctionalCode
public function testIfAccessThemeBartik() {
$this
->userLogin([
'administer themes bartik',
]);
$this
->drupalGet(Url::fromRoute('system.theme_settings_theme', [
'theme' => 'bartik',
]));
$this
->assertSession()
->statusCodeEquals(200);
}