From f09028107ca18a8f897ff517d2ed04688e1c567d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 20 Apr 2009 20:02:31 +0000 Subject: - Patch #413732 by brianV: database code clean-up. --- modules/upload/upload.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/upload/upload.test') 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.')); } /** -- cgit v1.2.3