protected function TranslatedViewTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php \Drupal\Tests\views_ui\Functional\TranslatedViewTest::setUp()
- 10 core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php \Drupal\Tests\views_ui\Functional\TranslatedViewTest::setUp()
Overrides UITestBase::setUp
File
- core/
modules/ views_ui/ tests/ src/ Functional/ TranslatedViewTest.php, line 45
Class
- TranslatedViewTest
- Tests that translated strings in views UI don't override original strings.
Namespace
Drupal\Tests\views_ui\FunctionalCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$permissions = [
'administer site configuration',
'administer views',
'translate configuration',
'translate interface',
];
// Create and log in user.
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
// Add languages.
foreach ($this->langcodes as $langcode) {
ConfigurableLanguage::createFromLangcode($langcode)
->save();
}
$this
->resetAll();
$this
->rebuildContainer();
}