function FileSaveUploadTest::testNoUpload
7.x file.test | FileSaveUploadTest::testNoUpload() |
Test for no failures when not uploading a file.
File
- drupal-7.x/
modules/ simpletest/ tests/ file.test, line 880 - 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.');
}