You are here

public function FieldFileSizeTest::viewsData in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php \Drupal\Tests\views\Kernel\Handler\FieldFileSizeTest::viewsData()
  2. 9 core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php \Drupal\Tests\views\Kernel\Handler\FieldFileSizeTest::viewsData()

File

core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php, line 33

Class

FieldFileSizeTest
Tests the core Drupal\views\Plugin\views\field\FileSize handler.

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function viewsData() {
  $data = parent::viewsData();
  $data['views_test_data']['age']['field']['id'] = 'file_size';
  return $data;
}