You are here

protected function LanguageTestBase::dataSet in Drupal 8

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

Returns a very simple test dataset.

Overrides ViewsKernelTestBase::dataSet

File

core/modules/language/tests/src/Kernel/Views/LanguageTestBase.php, line 68

Class

LanguageTestBase
Defines the base class for all Language handler tests.

Namespace

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