You are here

function FieldFileSizeTest::dataSet in Zircon Profile 8

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

Returns a very simple test dataset.

Overrides ViewKernelTestBase::dataSet

File

core/modules/views/src/Tests/Handler/FieldFileSizeTest.php, line 28
Contains \Drupal\views\Tests\Handler\FieldFileSizeTest.

Class

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

Namespace

Drupal\views\Tests\Handler

Code

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