You are here

function FileSaveUploadTest::testNoUpload in Drupal 7

Test for no failures when not uploading a file.

File

modules/simpletest/tests/file.test, line 1024
This provides SimpleTests for the core file handling functionality. These include FileValidateTest and FileSaveTest.

Class

FileSaveUploadTest
Test the file_save_upload() function.

Code

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