You are here

public function focalPointTest::testResizeData in Focal Point 7

Test Resize Data.

@dataProvider resizeDataProvider

File

test/FocalPointTest.php, line 71

Class

focalPointTest
Class for Focal Point Test.

Code

public function testResizeData($image_width, $image_height, $crop_width, $crop_heigt, $expected) {
  $this
    ->assertSame($expected, focal_point_effect_resize_data($image_width, $image_height, $crop_width, $crop_heigt));
}