You are here

public function SlickFormatterTest::providerTestBuildSettings in Slick Carousel 8

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

Provide test cases for ::testBuildSettings().

Return value

array An array of tested data.

File

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

Class

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

Namespace

Drupal\Tests\slick\Kernel

Code

public function providerTestBuildSettings() {
  $breakpoints = $this
    ->getDataBreakpoints(TRUE);
  $data[] = [
    [
      'vanilla' => TRUE,
      'breakpoints' => [],
    ],
    FALSE,
  ];
  $data[] = [
    [
      'vanilla' => FALSE,
      'breakpoints' => [],
      'blazy' => FALSE,
      'ratio' => 'fluid',
    ],
    TRUE,
  ];
  $data[] = [
    [
      'vanilla' => FALSE,
      'breakpoints' => $breakpoints,
      'blazy' => TRUE,
    ],
    TRUE,
  ];
  return $data;
}