You are here

protected function ConfigTranslationViewListUiTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationViewListUiTest::setUp()

Overrides UITestBase::setUp

File

core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php, line 37

Class

ConfigTranslationViewListUiTest
Visit view list and test if translate is available.

Namespace

Drupal\Tests\config_translation\Functional

Code

protected function setUp($import_test_views = TRUE) : void {
  parent::setUp($import_test_views);
  $permissions = [
    'administer views',
    'translate configuration',
    'access content overview',
    'administer languages',
  ];

  // Create and log in user.
  $this
    ->drupalLogin($this
    ->drupalCreateUser($permissions));
}