function GlossaryStatusFilterTest::testGlossaryView
Same name in other branches
- 8.9.x core/modules/views/tests/src/Functional/Update/GlossaryStatusFilterTest.php \Drupal\Tests\views\Functional\Update\GlossaryStatusFilterTest::testGlossaryView()
Tests the default glossary view.
File
-
core/
modules/ views/ tests/ src/ Functional/ Update/ GlossaryStatusFilterTest.php, line 27
Class
- GlossaryStatusFilterTest
- Tests that the status filter is added to the glossary view.
Namespace
Drupal\Tests\views\Functional\UpdateCode
public function testGlossaryView() {
$view = View::load('glossary');
$this->assertTrue(empty($view->getDisplay('default')['display_options']['filters']['status']));
$this->runUpdates();
$view = View::load('glossary');
$this->assertNotEmpty($view->getDisplay('default')['display_options']['filters']['status']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.