You are here

public function SlickFormatterTest::providerTestGetThumbnail in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 tests/src/Kernel/SlickFormatterTest.php \Drupal\Tests\slick\Kernel\SlickFormatterTest::providerTestGetThumbnail()

Provide test cases for ::testGetThumbnail().

Return value

array An array of tested data.

File

tests/src/Kernel/SlickFormatterTest.php, line 144

Class

SlickFormatterTest
Tests the Slick field rendering using the image field type.

Namespace

Drupal\Tests\slick\Kernel

Code

public function providerTestGetThumbnail() {
  $data[] = [
    '',
    FALSE,
  ];
  $data[] = [
    'public://example.jpg',
    TRUE,
  ];
  return $data;
}