function ContextualFilterTest::setUp
Same name in other branches
- 9 core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\ContextualFilterTest::setUp()
- 8.9.x core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\ContextualFilterTest::setUp()
- 10 core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/ContextualFilterTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\ContextualFilterTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ views/ tests/ src/ FunctionalJavascript/ Plugin/ views/ Handler/ ContextualFilterTest.php, line 42
Class
- ContextualFilterTest
- Tests the contextual filter handler UI.
Namespace
Drupal\Tests\views\FunctionalJavascript\Plugin\views\HandlerCode
protected function setUp() : void {
parent::setUp();
ViewTestData::createTestViews(static::class, [
'views_test_config',
]);
// Always show advanced column.
\Drupal::configFactory()->getEditable('views.settings')
->set('ui.show.advanced_column', TRUE)
->save();
// Disable automatic live preview to make the sequence of calls clearer. And
// prevent errors on saving the view with the preview ajax load that are
// cancelled.
\Drupal::configFactory()->getEditable('views.settings')
->set('ui.always_live_preview', FALSE)
->save();
$account = $this->drupalCreateUser([
'administer views',
]);
$this->drupalLogin($account);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.