function ImageTest::testGetKeywordOffset

@covers ::getKeywordOffset

@dataProvider providerTestGetKeywordOffset

File

core/tests/Drupal/Tests/Component/Utility/ImageTest.php, line 174

Class

ImageTest
@coversDefaultClass \Drupal\Component\Utility\Image @group Image

Namespace

Drupal\Tests\Component\Utility

Code

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.