You are here

public function BlazyEntityReferenceFormatterTest::providerTestBuildPreview in Blazy 8

Provide test cases for ::testBuildPreview().

Return value

array An array of tested data.

File

tests/src/Kernel/BlazyEntityReferenceFormatterTest.php, line 226

Class

BlazyEntityReferenceFormatterTest
Tests the Blazy entity reference file formatter.

Namespace

Drupal\Tests\blazy\Kernel

Code

public function providerTestBuildPreview() {
  $data[] = [
    [],
    FALSE,
    FALSE,
    [],
  ];
  $data[] = [
    [
      '_basic' => FALSE,
      '_detached' => FALSE,
    ],
    TRUE,
    TRUE,
    TRUE,
  ];
  $data[] = [
    [
      '_basic' => TRUE,
      '_detached' => TRUE,
    ],
    TRUE,
    TRUE,
    TRUE,
  ];
  $data[] = [
    [],
    TRUE,
    FALSE,
    TRUE,
  ];
  return $data;
}