protected function LanguageTestBase::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/language/src/Tests/LanguageTestBase.php \Drupal\language\Tests\LanguageTestBase::setUp()
- 8 core/modules/language/src/Tests/Views/LanguageTestBase.php \Drupal\language\Tests\Views\LanguageTestBase::setUp()
Same name and namespace in other branches
- 8.0 core/modules/language/src/Tests/Views/LanguageTestBase.php \Drupal\language\Tests\Views\LanguageTestBase::setUp()
Parameters
bool $import_test_views: Should the views specififed on the test class be imported. If you need to setup some additional stuff, like fields, you need to call false and then call createTestViews for your own.
Overrides ViewKernelTestBase::setUp
File
- core/
modules/ language/ src/ Tests/ Views/ LanguageTestBase.php, line 25 - Contains \Drupal\language\Tests\Views\LanguageTestBase.
Class
- LanguageTestBase
- Defines the base class for all Language handler tests.
Namespace
Drupal\language\Tests\ViewsCode
protected function setUp() {
parent::setUp();
$this
->installConfig(array(
'language',
));
// Create another language beside English.
ConfigurableLanguage::create(array(
'id' => 'xx-lolspeak',
'label' => 'Lolspeak',
))
->save();
}