FileSaveUploadTest::testNoUpload

7 file.test FileSaveUploadTest::testNoUpload()
8 file.test FileSaveUploadTest::testNoUpload()

Test for no failures when not uploading a file.

File

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

Code

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