function BlockExposedFilterAJAXTest::setUp

Same name in other branches
  1. 9 core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php \Drupal\Tests\views\FunctionalJavascript\BlockExposedFilterAJAXTest::setUp()
  2. 8.9.x core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php \Drupal\Tests\views\FunctionalJavascript\BlockExposedFilterAJAXTest::setUp()
  3. 10 core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php \Drupal\Tests\views\FunctionalJavascript\BlockExposedFilterAJAXTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php, line 37

Class

BlockExposedFilterAJAXTest
Tests the exposed filter ajax functionality in a block.

Namespace

Drupal\Tests\views\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    ViewTestData::createTestViews(self::class, [
        'views_test_config',
    ]);
    $this->createContentType([
        'type' => 'page',
    ]);
    $this->createContentType([
        'type' => 'article',
    ]);
    $this->createNode([
        'title' => 'Page A',
    ]);
    $this->createNode([
        'title' => 'Page B',
    ]);
    $this->createNode([
        'title' => 'Article A',
        'type' => 'article',
    ]);
    $this->drupalLogin($this->drupalCreateUser([
        'access content',
    ]));
}

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