diff options
author | David Rothstein <drothstein@gmail.com> | 2013-03-04 23:26:11 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-03-04 23:26:11 -0500 |
commit | 0a9cd357b43bdb0c0c7e574a15975e662f855d8d (patch) | |
tree | d1d1e5f700a9b2d5f2b1a990ee67cbf5903890ec /modules/image | |
parent | e0a69c4c53775c8e902da416f48108ad46023727 (diff) | |
download | brdo-0a9cd357b43bdb0c0c7e574a15975e662f855d8d.tar.gz brdo-0a9cd357b43bdb0c0c7e574a15975e662f855d8d.tar.bz2 |
Issue #1890754 by Berdir, pwolanin, tim.plunkett: [Tests] Private Images visible by url.
Diffstat (limited to 'modules/image')
-rw-r--r-- | modules/image/image.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/image/image.test b/modules/image/image.test index cb4ce4848..3d34fc4f8 100644 --- a/modules/image/image.test +++ b/modules/image/image.test @@ -240,6 +240,12 @@ class ImageStylesPathAndUrlTestCase extends DrupalWebTestCase { $this->drupalGet($generate_url); $this->assertResponse(200, t('Image was generated at the URL.')); + // Make sure that access is denied for existing style files if we do not + // have access. + variable_del('image_module_test_file_download'); + $this->drupalGet($generate_url); + $this->assertResponse(403, 'Confirmed that access is denied for the private image style.'); + // Repeat this with a different file that we do not have access to and // make sure that access is denied. $file_noaccess = array_shift($files); |