diff options
author | Dries Buytaert <dries@buytaert.net> | 2011-08-01 20:25:52 -0400 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2011-08-01 20:25:52 -0400 |
commit | 5546648d9092501b8c796a9a139cab6f092baee8 (patch) | |
tree | 94b9535dc188bd143b906645260a9fee983716b7 /modules/file | |
parent | f60942fed0ff266aa2456ba4e5ecc2ba3e64bc3d (diff) | |
download | brdo-5546648d9092501b8c796a9a139cab6f092baee8.tar.gz brdo-5546648d9092501b8c796a9a139cab6f092baee8.tar.bz2 |
- Patch #1221214 by chx: file_download() returns 404 instead of 403.
Diffstat (limited to 'modules/file')
-rw-r--r-- | modules/file/tests/file.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/tests/file.test b/modules/file/tests/file.test index 0e5f97d84..ef250eff9 100644 --- a/modules/file/tests/file.test +++ b/modules/file/tests/file.test @@ -1104,6 +1104,6 @@ class FilePrivateTestCase extends FileFieldTestCase { $this->assertResponse(200, t('Confirmed that the generated URL is correct by downloading the shipped file.')); $this->drupalLogOut(); $this->drupalGet(file_create_url($node_file->uri)); - $this->assertNoResponse(200, t('Confirmed that access is denied for the file without the needed permission.')); + $this->assertResponse(403, t('Confirmed that access is denied for the file without the needed permission.')); } } |