You are here

public function FocalPointEffectsTest::testCalculateResizeData in Focal Point 8

Test the resize calculation.

@covers ::calculateResizeData

@dataProvider calculateResizeDataProvider

File

tests/src/Unit/Effects/FocalPointEffectsTest.php, line 55

Class

FocalPointEffectsTest
Tests the Focal Point image effects.

Namespace

Drupal\Tests\focal_point\Unit\Effects

Code

public function testCalculateResizeData($image_width, $image_height, $crop_width, $crop_height, $expected) {
  $this
    ->assertSame($expected, FocalPointEffectBase::calculateResizeData($image_width, $image_height, $crop_width, $crop_height));
}