// Check that we did not download the original file.
$original_image = $this->container->get('image.factory') ->get($original_uri); $this->assertSession()->responseHeaderNotEquals('Content-Length', (string)$original_image->getFileSize());
// Make sure that a second request to the already existing derivative
// works too.
$this->drupalGet($generate_url); $this->assertSession()->statusCodeEquals(200);
/**
* The use of responseHeaderNotEquals() is not available.
*
* @param string $name
* The name of the header.
* @param string $value
* The value to check the header against.
*/ publicfunctionresponseHeaderNotEquals($name, $value){ @trigger_error('Support for responseHeaderNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.'); parent::responseHeaderNotEquals($name, $value); }
/**
* The use of responseHeaderContains() is not available.
*
* @param string $name
* The name of the header.
* @param string $value
* The value to check the header against.
*/ publicfunctionresponseHeaderContains($name, $value){ @