You are here

public function FileMediaFormatterTestBase::dataProvider in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php \Drupal\Tests\file\Functional\Formatter\FileMediaFormatterTestBase::dataProvider()

Data provider for testRender.

Return value

array An array of data arrays. The data array contains:

  • The number of expected HTML tags.
  • An array of settings for the field formatter.

File

core/modules/file/tests/src/Functional/Formatter/FileMediaFormatterTestBase.php, line 87

Class

FileMediaFormatterTestBase
Provides methods specifically for testing File module's media formatter's.

Namespace

Drupal\Tests\file\Functional\Formatter

Code

public function dataProvider() {
  return [
    [
      2,
      [],
    ],
    [
      1,
      [
        'multiple_file_display_type' => 'sources',
      ],
    ],
  ];
}