protected function LanguageTestBase::dataSet in Drupal 9
Same name and namespace in other branches
- 8 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\ViewsCode
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;
}