You are here

function FieldBooleanTest::dataSet in Zircon Profile 8

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

Returns a very simple test dataset.

Overrides ViewKernelTestBase::dataSet

File

core/modules/views/src/Tests/Handler/FieldBooleanTest.php, line 27
Contains \Drupal\views\Tests\Handler\FieldBooleanTest.

Class

FieldBooleanTest
Tests the core Drupal\views\Plugin\views\field\Boolean handler.

Namespace

Drupal\views\Tests\Handler

Code

function dataSet() {

  // Use default dataset but remove the age from john and paul
  $data = parent::dataSet();
  $data[0]['age'] = 0;
  $data[3]['age'] = 0;
  return $data;
}