You are here

public function ImageResourceUrlTest::testImageResourceUrlProvider in GraphQL 8.4

Provider for testImageResourceUrl().

File

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

Class

ImageResourceUrlTest
Test class for the ImageResourceUrl data producer.

Namespace

Drupal\Tests\graphql\Kernel\DataProducer\Images

Code

public function testImageResourceUrlProvider() : array {
  return [
    [
      [
        'url' => 'http://localhost/test_image.jpg',
      ],
      'http://localhost/test_image.jpg',
    ],
    [
      [],
      '',
    ],
  ];
}