You are here

public function SlickManagerTest::providerTestSlickBuild in Slick Carousel 8

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

Provide test cases for ::testBuild().

Return value

array An array of tested data.

File

tests/src/Kernel/SlickManagerTest.php, line 195

Class

SlickManagerTest
Tests the Slick manager methods.

Namespace

Drupal\Tests\slick\Kernel

Code

public function providerTestSlickBuild() {
  $data[] = [
    FALSE,
    [],
    [],
    FALSE,
  ];
  $data[] = [
    TRUE,
    [
      'grid' => 3,
      'visible_items' => 6,
      'override' => TRUE,
      'overridables' => [
        'arrows' => FALSE,
        'dots' => TRUE,
      ],
      'skin_dots' => 'dots',
      'cache' => -1,
      'cache_tags' => [
        'url.site',
      ],
    ],
    [
      'dots' => TRUE,
    ],
    TRUE,
  ];
  $data[] = [
    TRUE,
    [
      'grid' => 3,
      'visible_items' => 6,
      'unslick' => TRUE,
    ],
    [],
    TRUE,
  ];
  $data[] = [
    TRUE,
    [
      'skin' => 'test',
      'nav' => TRUE,
      'optionset_thumbnail' => 'test_nav',
      'thumbnail_position' => 'top',
      'thumbnail_style' => 'thumbnail',
      'thumbnail_effect' => 'hover',
    ],
    [],
    TRUE,
  ];
  return $data;
}