/** @var \Drupal\image\Entity\ImageStyle $style */
$style = ImageStyle::
load('big_blue_cheese'
);
// Check basic Style info.
$this->
assertSame('big_blue_cheese',
$style->
get('name'
), 'ImageStyle name set correctly'
);
$this->
assertSame('big_blue_cheese',
$style->
get('label'
), 'ImageStyle label set correctly'
);
// Test effects.
$effects =
$style->
getEffects();
// Check crop effect.
$this->
assertImageEffect($effects, 'image_crop',
[ 'width' => 555,
'height' => 5555,
'anchor' => 'center-center',
]);
// Check resize effect.
$this->
assertImageEffect($effects, 'image_resize',
[ 'width' => 55,
'height' => 55,
]);