function NoJavaScriptAnonymousTest::setUp
Same name in other branches
- 8.9.x core/modules/system/tests/src/Functional/Common/NoJavaScriptAnonymousTest.php \Drupal\Tests\system\Functional\Common\NoJavaScriptAnonymousTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ system/ tests/ src/ Functional/ Common/ NoJavaScriptAnonymousTest.php, line 31
Class
- NoJavaScriptAnonymousTest
- Tests that anonymous users are not served any JavaScript.
Namespace
Drupal\Tests\system\Functional\CommonCode
protected function setUp() : void {
parent::setUp();
// Grant the anonymous user the permission to look at user profiles.
user_role_grant_permissions('anonymous', [
'access user profiles',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.