function FieldDialogsTest::setUp

Same name in other branches
  1. 11.x core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php \Drupal\Tests\views_ui\FunctionalJavascript\FieldDialogsTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/views_ui/tests/src/FunctionalJavascript/FieldDialogsTest.php, line 42

Class

FieldDialogsTest
Tests the fields dialogs.

Namespace

Drupal\Tests\views_ui\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    ViewTestData::createTestViews(self::class, [
        'views_test_config',
    ]);
    $admin_user = $this->drupalCreateUser([
        'administer site configuration',
        'administer views',
        'access content overview',
    ]);
    // Disable automatic live preview to make the sequence of calls clearer.
    \Drupal::configFactory()->getEditable('views.settings')
        ->set('ui.always_live_preview', FALSE)
        ->save();
    $this->drupalLogin($admin_user);
}

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