You are here

function SaveUploadTest::testNoUpload in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/file/src/Tests/SaveUploadTest.php \Drupal\file\Tests\SaveUploadTest::testNoUpload()

Test for no failures when not uploading a file.

File

core/modules/file/src/Tests/SaveUploadTest.php, line 333
Contains \Drupal\file\Tests\SaveUploadTest.

Class

SaveUploadTest
Tests the file_save_upload() function.

Namespace

Drupal\file\Tests

Code

function testNoUpload() {
  $this
    ->drupalPostForm('file-test/upload', array(), t('Submit'));
  $this
    ->assertNoRaw(t('Epic upload FAIL!'), 'Failure message not found.');
}