$this->
assertFileDoesNotExist($generated_uri);
$this->
drupalGet($this->
getAbsoluteUrl($url));
$this->
assertSession()->
statusCodeEquals(200
);
$this->
assertFileExists($generated_uri);
$image_file =
$image_factory->
get($generated_uri);
// @todo Uncomment this once
// https://www.drupal.org/project/drupal/issues/2670966 is resolved.
// $this->assertEquals(41, $image_file->getWidth());
// $this->assertEquals(41, $image_file->getHeight());
$effect_plugin =
$style->
getEffect($effect_id);
$style->
deleteImageEffect($effect_plugin);
// Ensure that an effect can unset dimensions.
$effect =
[ 'id' => 'image_module_test_null',
'data' =>
[],
'weight' => 8,
];
$style->
addImageEffect($effect);
$style->
save();
$this->
assertEquals('<img src="' .
$url . '" alt="" />',
$this->
getImageTag($variables));