function UserPermissionsTest::testOverriddenPermission
Verify that the permission form does not use overridden config.
See also
\Drupal\user_config_override_test\ConfigOverrider
File
-
core/
modules/ user/ tests/ src/ Functional/ UserPermissionsTest.php, line 348
Class
- UserPermissionsTest
- Verifies role permissions can be added and removed via the permissions page.
Namespace
Drupal\Tests\user\FunctionalCode
public function testOverriddenPermission() : void {
$this->drupalLogin($this->adminUser);
$this->drupalGet('admin/people/permissions');
$this->assertSession()
->checkboxNotChecked('anonymous[access content]');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.