comparison core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents c2387f117808
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
285 $generate_url = $this->style->buildUrl($original_uri, $clean_url); 285 $generate_url = $this->style->buildUrl($original_uri, $clean_url);
286 $this->assertIdentical(strpos($generate_url, IMAGE_DERIVATIVE_TOKEN . '='), FALSE, 'The security token does not appear in the image style URL.'); 286 $this->assertIdentical(strpos($generate_url, IMAGE_DERIVATIVE_TOKEN . '='), FALSE, 'The security token does not appear in the image style URL.');
287 $this->drupalGet($generate_url); 287 $this->drupalGet($generate_url);
288 $this->assertResponse(200, 'Image was accessible at the URL with a missing token.'); 288 $this->assertResponse(200, 'Image was accessible at the URL with a missing token.');
289 289
290 // Stop supressing the security token in the URL. 290 // Stop suppressing the security token in the URL.
291 $this->config('image.settings')->set('suppress_itok_output', FALSE)->save(); 291 $this->config('image.settings')->set('suppress_itok_output', FALSE)->save();
292 // Ensure allow_insecure_derivatives is enabled. 292 // Ensure allow_insecure_derivatives is enabled.
293 $this->assertEqual($this->config('image.settings') 293 $this->assertEqual($this->config('image.settings')
294 ->get('allow_insecure_derivatives'), TRUE); 294 ->get('allow_insecure_derivatives'), TRUE);
295 // Check that a security token is still required when generating a second 295 // Check that a security token is still required when generating a second