You are here

public function FieldDateTest::dataSet in Zircon Profile 8

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

Returns a very simple test dataset.

Overrides ViewKernelTestBase::dataSet

File

core/modules/views/src/Tests/Handler/FieldDateTest.php, line 62
Contains \Drupal\views\Tests\Handler\FieldDateTest.

Class

FieldDateTest
Tests the core Drupal\views\Plugin\views\field\Date handler.

Namespace

Drupal\views\Tests\Handler

Code

public function dataSet() {
  $datas = parent::dataSet();
  foreach ($datas as $i => $data) {
    $datas[$i]['destroyed'] = gmmktime(0, 0, 0, 1, 1, 2050);
  }
  return $datas;
}