You are here

function FileSaveUploadTest::testNoUpload in SimpleTest 7

Test for no failures when not uploading a file.

File

tests/file.test, line 677
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!'), t('Failure message not found.'));
}