public function BlazyUnitTest::providerTestPreRenderImageLightbox in Blazy 8
Same name and namespace in other branches
- 8.2 tests/src/Unit/BlazyUnitTest.php \Drupal\Tests\blazy\Unit\BlazyUnitTest::providerTestPreRenderImageLightbox()
Provide test cases for ::testPreRenderImageLightbox().
Return value
array An array of tested data.
File
- tests/
src/ Unit/ BlazyUnitTest.php, line 266
Class
- BlazyUnitTest
- @coversDefaultClass \Drupal\blazy\Blazy
Namespace
Drupal\Tests\blazy\UnitCode
public function providerTestPreRenderImageLightbox() {
$data[] = [
[
'box_caption' => '',
'content_url' => 'node/1',
'dimension' => '',
'lightbox' => FALSE,
'media_switch' => 'content',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'auto',
'lightbox' => TRUE,
'media_switch' => 'colorbox',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'alt',
'lightbox' => TRUE,
'media_switch' => 'colorbox',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'title',
'lightbox' => TRUE,
'media_switch' => 'photobox',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'alt_title',
'lightbox' => TRUE,
'media_switch' => 'colorbox',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'title_alt',
'lightbox' => TRUE,
'media_switch' => 'photobox',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'entity_title',
'lightbox' => TRUE,
'media_switch' => 'photobox',
'type' => 'image',
],
];
$data[] = [
[
'box_caption' => 'custom',
'box_caption_custom' => '[node:field_text_multiple]',
'dimension' => '640x360',
'embed_url' => '//www.youtube.com/watch?v=E03HFA923kw',
'lightbox' => TRUE,
'media_switch' => 'photobox',
'scheme' => 'youtube',
'type' => 'video',
],
];
return $data;
}