function BlockExposedFilterAJAXTest::setUp
Same name in other branches
- 9 core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php \Drupal\Tests\views\FunctionalJavascript\BlockExposedFilterAJAXTest::setUp()
- 10 core/modules/views/tests/src/FunctionalJavascript/BlockExposedFilterAJAXTest.php \Drupal\Tests\views\FunctionalJavascript\BlockExposedFilterAJAXTest::setUp()
- 11.x 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 35
Class
- BlockExposedFilterAJAXTest
- Tests the exposed filter ajax functionality in a block.
Namespace
Drupal\Tests\views\FunctionalJavascriptCode
public function setUp() {
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.