function AggregationAjaxTest::setUp

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

File

core/modules/views_ui/tests/src/FunctionalJavascript/AggregationAjaxTest.php, line 47

Class

AggregationAjaxTest
Tests editing a field's aggregation function via AJAX.

Namespace

Drupal\Tests\views_ui\FunctionalJavascript

Code

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

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