function ImageTest::testGetKeywordOffset
@legacy-covers ::getKeywordOffset
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.