You are here

public function focalPointTest::testCalculateEffectAnchor in Focal Point 7

Test Calculate Effect Anchor.

@dataProvider calculateEffectAnchorProvider

File

test/FocalPointTest.php, line 45

Class

focalPointTest
Class for Focal Point Test.

Code

public function testCalculateEffectAnchor($image_size, $crop_size, $focal_point_offset, $focal_point_shift, $expected) {
  $this
    ->assertSame($expected, focal_point_effect_calculate_anchor($image_size, $crop_size, $focal_point_offset, $focal_point_shift));
}