You are here

public function FieldDateTest::dataSet in Drupal 8

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

Returns a very simple test dataset.

Overrides ViewsKernelTestBase::dataSet

File

core/modules/views/tests/src/Kernel/Handler/FieldDateTest.php, line 57

Class

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

Namespace

Drupal\Tests\views\Kernel\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;
}