public function AccessThemeBrowserTest::testIfPermissionsIsPresent 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::testIfPermissionsIsPresent()
Check if permission is present in permissions page.
File
- tests/
src/ Functional/ AccessThemeBrowserTest.php, line 55
Class
- AccessThemeBrowserTest
- Administration theme access check.
Namespace
Drupal\Tests\theme_permission\FunctionalCode
public function testIfPermissionsIsPresent() {
$this
->userLogin([
'administer permissions',
]);
$this
->drupalGet('/admin/people/permissions');
$this
->assertSession()
->pageTextContains('administer themes bartik');
$this
->assertSession()
->pageTextContains('uninstall themes bartik');
$this
->assertSession()
->pageTextContains('Edit Administration theme');
}