You are here

public function BlazyManagerTest::testIsCrop in Blazy 8

Tests isCrop.

@covers ::isCrop @dataProvider providerIsCrop

File

tests/src/Kernel/BlazyManagerTest.php, line 339

Class

BlazyManagerTest
Tests the Blazy manager methods.

Namespace

Drupal\Tests\blazy\Kernel

Code

public function testIsCrop($image_style_id, $expected) {
  $image_style = $this->blazyManager
    ->entityLoad($image_style_id, 'image_style');
  $is_cropped = $this->blazyManager
    ->isCrop($image_style);
  $this
    ->assertEquals($expected, $is_cropped);
}