function FileSaveUploadTest::testNoUpload
Test for no failures when not uploading a file.
Archivo
- 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.
Código
function testNoUpload() {
$this->drupalPost('file-test/upload', array(), t('Submit'));
$this->assertNoRaw(t('Epic upload FAIL!'), 'Failure message not found.');
}