You are here

public function FileFieldAnonymousSubmissionTest::testAuthenticatedNodeWithFileWithoutTitle in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php \Drupal\Tests\file\Functional\FileFieldAnonymousSubmissionTest::testAuthenticatedNodeWithFileWithoutTitle()
  2. 9 core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php \Drupal\Tests\file\Functional\FileFieldAnonymousSubmissionTest::testAuthenticatedNodeWithFileWithoutTitle()

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

File

core/modules/file/tests/src/Functional/FileFieldAnonymousSubmissionTest.php, line 109

Class

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

Namespace

Drupal\Tests\file\Functional

Code

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