function TranslatedViewTest::setUp
Same name in other branches
- 9 core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php \Drupal\Tests\views_ui\Functional\TranslatedViewTest::setUp()
- 8.9.x 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 50
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, $modules = []) : void {
parent::setUp($import_test_views, $modules);
$permissions = [
'administer site configuration',
'administer views',
'translate configuration',
'translate interface',
];
$this->drupalPlaceBlock('local_tasks_block', [
'id' => 'test_role_admin_test_local_tasks_block',
]);
// 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.