function FilterStringTest::getBasicPageView
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterStringTest::getBasicPageView()
- 8.9.x core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterStringTest::getBasicPageView()
- 11.x core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php \Drupal\Tests\views\Kernel\Handler\FilterStringTest::getBasicPageView()
Build and return a Page view of the views_test_data table.
Return value
13 calls to FilterStringTest::getBasicPageView()
- FilterStringTest::testFilterStringGroupedExposedContains in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php - FilterStringTest::testFilterStringGroupedExposedEmpty in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php - FilterStringTest::testFilterStringGroupedExposedEnds in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php - FilterStringTest::testFilterStringGroupedExposedEqual in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php - FilterStringTest::testFilterStringGroupedExposedLonger in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php
File
-
core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterStringTest.php, line 79
Class
- FilterStringTest
- Tests the core Drupal\views\Plugin\views\filter\StringFilter handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function getBasicPageView() {
$view = Views::getView('test_view');
// In order to test exposed filters, we have to disable
// the exposed forms cache.
\Drupal::service('views.exposed_form_cache')->reset();
$view->newDisplay('page', 'Page', 'page_1');
return $view;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.