public function ImageUtilityTest::testPercentFilter in Image Effects 8.2
Same name and namespace in other branches
- 8.3 tests/src/Unit/ImageUtilityTest.php \Drupal\Tests\image_effects\Unit\ImageUtilityTest::testPercentFilter()
- 8 tests/src/Unit/ImageUtilityTest.php \Drupal\Tests\image_effects\Unit\ImageUtilityTest::testPercentFilter()
@covers ::percentFilter @dataProvider percentFilterProvider
File
- tests/
src/ Unit/ ImageUtilityTest.php, line 40
Class
- ImageUtilityTest
- Tests the image utility helper methods.
Namespace
Drupal\Tests\image_effects\UnitCode
public function testPercentFilter($length_specification, $current_length, $expected_result) {
$this
->assertSame($expected_result, ImageUtility::percentFilter($length_specification, $current_length));
}