diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-20 20:02:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-20 20:02:31 +0000 |
commit | f09028107ca18a8f897ff517d2ed04688e1c567d (patch) | |
tree | 1f6cff867077daac6dbdd9a78967679cadef1b8c /modules/upload/upload.test | |
parent | 10931908b5885741be806ff15586770691801e51 (diff) | |
download | brdo-f09028107ca18a8f897ff517d2ed04688e1c567d.tar.gz brdo-f09028107ca18a8f897ff517d2ed04688e1c567d.tar.bz2 |
- Patch #413732 by brianV: database code clean-up.
Diffstat (limited to 'modules/upload/upload.test')
-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.')); } /** |