function FileFieldAnonymousSubmission::setUp
Overrides FileFieldTestCase::setUp
File
-
modules/
file/ tests/ file.test, line 1786
Class
- FileFieldAnonymousSubmission
- Confirm that file field submissions work correctly for anonymous visitors.
Code
function setUp() {
parent::setUp();
// Allow node submissions by anonymous users.
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array(
'create article content',
'access content',
));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.