function ImageTest::testGetKeywordOffset
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Component/Utility/ImageTest.php \Drupal\Tests\Component\Utility\ImageTest::testGetKeywordOffset()
Tests get keyword offset.
Attributes
#[DataProvider('providerTestGetKeywordOffset')]
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ ImageTest.php, line 175
Class
Namespace
Drupal\Tests\Component\UtilityCode
public function testGetKeywordOffset(array $input, int $expected) : void {
$this->assertSame($expected, Image::getKeywordOffset($input['anchor'], $input['current'], $input['new']));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.