You are here

public function ImageResourceUrlTest::testImageResourceUrl in GraphQL 8.4

@covers \Drupal\graphql\Plugin\GraphQL\DataProducer\Images\ImageResourceUrl::resolve

@dataProvider testImageResourceUrlProvider

File

tests/src/Kernel/DataProducer/Images/ImageResourceUrlTest.php, line 19

Class

ImageResourceUrlTest
Test class for the ImageResourceUrl data producer.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer\Images

Code

public function testImageResourceUrl(array $input, string $expected) : void {
  $result = $this
    ->executeDataProducer('image_style_url', [
    'derivative' => $input,
  ]);
  $this
    ->assertEquals($expected, $result);
}