function FieldTimeIntervalTest::dataSet

Same name in other branches
  1. 10 core/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php \Drupal\Tests\views\Kernel\Handler\FieldTimeIntervalTest::dataSet()
  2. 11.x core/modules/views/tests/src/Kernel/Handler/FieldTimeIntervalTest.php \Drupal\Tests\views\Kernel\Handler\FieldTimeIntervalTest::dataSet()

Overrides \Drupal\views\Tests\ViewUnitTestBase::dataSet().

Overrides ViewTestBase::dataSet

File

core/modules/views/tests/src/Functional/Handler/FieldTimeIntervalTest.php, line 89

Class

FieldTimeIntervalTest
Tests the time interval handler.

Namespace

Drupal\Tests\views\Functional\Handler

Code

protected function dataSet() {
    $data_set = parent::dataSet();
    foreach ($data_set as $delta => $person) {
        $data_set[$delta]['age'] = $this->ages[$delta][0];
    }
    return $data_set;
}

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