summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/file.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/simpletest/tests/file.test')
-rw-r--r--modules/simpletest/tests/file.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/simpletest/tests/file.test b/modules/simpletest/tests/file.test
index d5ca1d854..ae05be83d 100644
--- a/modules/simpletest/tests/file.test
+++ b/modules/simpletest/tests/file.test
@@ -599,6 +599,14 @@ class FileSaveUploadTest extends FileHookTestCase {
// Check that the no hooks were called while failing.
$this->assertFileHooksCalled(array());
}
+
+ /**
+ * Test for no failures when not uploading a file.
+ */
+ function testNoUpload() {
+ $this->drupalPost('file-test/upload', array(), t('Submit'));
+ $this->assertNoRaw(t('Epic upload FAIL!'), t('Failure message not found.'));
+ }
}
/**
@@ -1765,4 +1773,3 @@ class FileNameMungingTest extends FileTestCase {
$this->assertIdentical($unmunged_name, $this->name, t('The unmunged (%unmunged) filename matches the original (%original)', array('%unmunged' => $unmunged_name, '%original' => $this->name)));
}
}
-