You are here

protected function LanguageTestBase::dataSet in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Tests/Views/LanguageTestBase.php \Drupal\language\Tests\Views\LanguageTestBase::dataSet()

Returns a very simple test dataset.

Overrides ViewKernelTestBase::dataSet

File

core/modules/language/src/Tests/Views/LanguageTestBase.php, line 73
Contains \Drupal\language\Tests\Views\LanguageTestBase.

Class

LanguageTestBase
Defines the base class for all Language handler tests.

Namespace

Drupal\language\Tests\Views

Code

protected function dataSet() {
  $data = parent::dataSet();
  $data[0]['langcode'] = 'en';
  $data[1]['langcode'] = 'xx-lolspeak';
  $data[2]['langcode'] = '';
  $data[3]['langcode'] = '';
  $data[4]['langcode'] = '';
  return $data;
}