You are here

protected function ClaroViewsUiTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroViewsUiTest.php \Drupal\FunctionalJavascriptTests\Theme\ClaroViewsUiTest::setUp()
  2. 9 core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroViewsUiTest.php \Drupal\FunctionalJavascriptTests\Theme\ClaroViewsUiTest::setUp()

Overrides BrowserTestBase::setUp

File

core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroViewsUiTest.php, line 27

Class

ClaroViewsUiTest
Runs tests on Views UI using Claro.

Namespace

Drupal\FunctionalJavascriptTests\Theme

Code

protected function setUp() : void {
  parent::setUp();

  // Disable automatic live preview to make the sequence of calls clearer.
  $this
    ->config('views.settings')
    ->set('ui.always_live_preview', FALSE)
    ->save();

  // Create the test user and log in.
  $admin_user = $this
    ->drupalCreateUser([
    'administer views',
    'access administration pages',
    'view the administration theme',
  ]);
  $this
    ->drupalLogin($admin_user);
}