function FileSaveUploadTest::testNoUpload

Test for no failures when not uploading a file.

File

modules/simpletest/tests/file.test, line 1034

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.