You are here

public function BlazyEntityTest::providerTestGetEntityView in Blazy 8.2

Provide test cases for ::testGetEntityView().

Return value

array An array of tested data.

File

tests/src/Kernel/BlazyEntityTest.php, line 66

Class

BlazyEntityTest
Tests the Blazy entity methods.

Namespace

Drupal\Tests\blazy\Kernel

Code

public function providerTestGetEntityView() {
  return [
    'Node' => [
      'node',
      '',
      'Node has node_view() taking precedence over view builder.',
      TRUE,
    ],
    'Responsive image' => [
      'responsive_image',
      'This is some fallback text.',
      'Responsive image has no view builder. Fallback to text.',
      TRUE,
    ],
    'Image' => [
      'image',
      '',
      'Image is not an instance of EntityInterface, returns false.',
      FALSE,
    ],
  ];
}