You are here

public function AjaxBehaviorTest::setUp in Facets 8

Overrides JsBase::setUp

File

tests/src/FunctionalJavascript/AjaxBehaviorTest.php, line 17

Class

AjaxBehaviorTest
Tests for the JS that powers ajax.

Namespace

Drupal\Tests\facets\FunctionalJavascript

Code

public function setUp() {
  parent::setUp();

  // Force ajax.
  $view = View::load('search_api_test_view');
  $display = $view
    ->getDisplay('page_1');
  $display['display_options']['use_ajax'] = TRUE;
  $view
    ->save();
}