public function BlazyManagerTest::providerBuildAttributes in Blazy 8
Provider for ::testBuildAttributes.
File
- tests/
src/ Kernel/ BlazyManagerTest.php, line 236
Class
- BlazyManagerTest
- Tests the Blazy manager methods.
Namespace
Drupal\Tests\blazy\KernelCode
public function providerBuildAttributes() {
$breakpoints = $this
->getDataBreakpoints();
$data[] = [
[
'background' => FALSE,
'breakpoints' => [],
],
FALSE,
NULL,
FALSE,
FALSE,
];
$data[] = [
[
'background' => FALSE,
'breakpoints' => [],
],
FALSE,
TRUE,
FALSE,
TRUE,
];
$data[] = [
[
'background' => TRUE,
'breakpoints' => $breakpoints,
'ratio' => 'fluid',
'sizes' => '100w',
'width' => 640,
'height' => 360,
],
TRUE,
TRUE,
FALSE,
FALSE,
];
return $data;
}