function FieldFileSizeTest::dataSet

Same name in other branches
  1. 8.9.x 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()
  3. 11.x core/modules/views/tests/src/Kernel/Handler/FieldFileSizeTest.php \Drupal\Tests\views\Kernel\Handler\FieldFileSizeTest::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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.