You are here

public function FocalPointManagerTest::testValidateFocalPoint in Focal Point 8

Validate focal point.

@covers ::validateFocalPoint

@dataProvider providerValidateFocalPoint

File

tests/src/Unit/FocalPointManagerTest.php, line 40

Class

FocalPointManagerTest
@coversDefaultClass \Drupal\focal_point\FocalPointManager

Namespace

Drupal\Tests\focal_point\Unit

Code

public function testValidateFocalPoint($value, $expected) {
  $this
    ->assertEquals($expected, $this->focalPointManager
    ->validateFocalPoint($value));
}