function SaveUploadTest::testNoUpload

Tests for no failures when not uploading a file.

File

core/modules/file/tests/src/Functional/SaveUploadTest.php, line 641

Class

SaveUploadTest
Tests the file_save_upload() function.

Namespace

Drupal\Tests\file\Functional

Code

public function testNoUpload() {
  $this->drupalGet('file-test/upload');
  $this->submitForm([], 'Submit');
  $this->assertSession()
    ->pageTextNotContains("Epic upload FAIL!");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.