You are here

public function FieldFileSizeTest::dataSet in Drupal 9

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

Returns a very simple test dataset.

Overrides ViewsKernelTestBase::dataSet

File

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

Class

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

Namespace

Drupal\Tests\views\Kernel\Handler

Code

public function dataSet() {
  $data = parent::dataSet();
  $data[0]['age'] = 0;
  $data[1]['age'] = 10;
  $data[2]['age'] = 1000;
  $data[3]['age'] = 10000;
  return $data;
}