Révision b4adf10d
Ajouté par Assos Assos il y a plus de 9 ans
drupal7/modules/image/image.test | ||
---|---|---|
173 | 173 |
$this->_testImageStyleUrlAndPath('public', TRUE, TRUE); |
174 | 174 |
} |
175 | 175 |
|
176 |
/** |
|
177 |
* Test that an invalid source image returns a 404. |
|
178 |
*/ |
|
179 |
function testImageStyleUrlForMissingSourceImage() { |
|
180 |
$non_existent_uri = 'public://foo.png'; |
|
181 |
$generated_url = image_style_url($this->style_name, $non_existent_uri); |
|
182 |
$this->drupalGet($generated_url); |
|
183 |
$this->assertResponse(404, 'Accessing an image style URL with a source image that does not exist provides a 404 error response.'); |
|
184 |
} |
|
185 |
|
|
176 | 186 |
/** |
177 | 187 |
* Test image_style_url(). |
178 | 188 |
*/ |
Formats disponibles : Unified diff
Udpate to 7.33