diff options
Diffstat (limited to 'modules/upload')
-rw-r--r-- | modules/upload/upload.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/upload/upload.test b/modules/upload/upload.test index 9c2956c9d..8103b873d 100644 --- a/modules/upload/upload.test +++ b/modules/upload/upload.test @@ -199,6 +199,9 @@ class UploadTestCase extends DrupalWebTestCase { $this->drupalGet($base_url . '/' . file_directory_path() . '/' . $filename, array('external' => TRUE)); $this->assertResponse(array(200), 'Uploaded ' . $filename . ' is accessible.'); $this->assertEqual(file_get_contents($file), $this->drupalGetContent(), 'Uploaded contents of ' . $filename . ' verified.'); + // Verify file actually is readable and writeable by PHP. + $this->assertTrue(is_readable($file), t('Uploaded file is readable.')); + $this->assertTrue(is_writeable($file), t('Uploaded file is writeable.')); } /** |