You are here

public function FocalPointEffectsTest::testSetGetOriginalImageSize in Focal Point 8

Test the getting and setting of the original image size.

@covers ::setOriginalImageSize @covers ::getOriginalImageSize

File

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

Class

FocalPointEffectsTest
Tests the Focal Point image effects.

Namespace

Drupal\Tests\focal_point\Unit\Effects

Code

public function testSetGetOriginalImageSize() {
  $original_image_dimensions = [
    'width' => 131,
    'height' => 313,
  ];
  $original_image = $this
    ->getTestImage($original_image_dimensions['width'], $original_image_dimensions['height']);
  $effect = $this
    ->getTestEffect($original_image);
  $this
    ->assertArrayEquals($original_image_dimensions, $effect
    ->getOriginalImageSize());
}