You are here

function FileFieldAnonymousSubmission::testAuthenticatedNodeWithFileWithoutTitle in Drupal 7

Tests file submission for an authenticated user with a missing node title.

File

modules/file/tests/file.test, line 1804
Tests for file.module.

Class

FileFieldAnonymousSubmission
Confirm that file field submissions work correctly for anonymous visitors.

Code

function testAuthenticatedNodeWithFileWithoutTitle() {
  $admin_user = $this
    ->drupalCreateUser(array(
    'bypass node access',
    'access content overview',
    'administer nodes',
  ));
  $this
    ->drupalLogin($admin_user);
  $this
    ->_testNodeWithFileWithoutTitle();
}