You are here

public function SlickFormatterTest::providerTestBuildSettings in Slick Carousel 8.2

Same name and namespace in other branches
  1. 8 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 181

Class

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

Namespace

Drupal\Tests\slick\Kernel

Code

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