You are here

public function GridStackFormatterTest::providerTestBuildSettings in GridStack 8

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

Provide test cases for ::testBuildSettings().

Return value

array An array of tested data.

File

tests/src/Kernel/GridStackFormatterTest.php, line 141

Class

GridStackFormatterTest
Tests the GridStack field rendering using the image field type.

Namespace

Drupal\Tests\gridstack\Kernel

Code

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