function ConfigTranslationViewListUiTest::setUp

Same name in other branches
  1. 9 core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationViewListUiTest::setUp()
  2. 10 core/modules/config_translation/tests/src/Functional/ConfigTranslationViewListUiTest.php \Drupal\Tests\config_translation\Functional\ConfigTranslationViewListUiTest::setUp()
  3. 11.x 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 33

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) {
    parent::setUp($import_test_views);
    $permissions = [
        'administer views',
        'translate configuration',
    ];
    // Create and log in user.
    $this->drupalLogin($this->drupalCreateUser($permissions));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.