protected function FileFieldAnonymousSubmissionTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php \Drupal\Tests\file\Functional\FileFieldAnonymousSubmissionTest::setUp()
Overrides FileFieldTestBase::setUp
File
- core/
modules/ file/ tests/ src/ Functional/ FileFieldAnonymousSubmissionTest.php, line 24
Class
- FileFieldAnonymousSubmissionTest
- Confirm that file field submissions work correctly for anonymous visitors.
Namespace
Drupal\Tests\file\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Set up permissions for anonymous attacker user.
user_role_change_permissions(RoleInterface::ANONYMOUS_ID, [
'create article content' => TRUE,
'access content' => TRUE,
]);
}