public function GlossaryStatusFilterTest::testGlossaryView in Drupal 8
Same name and namespace in other branches
- 9 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 28
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']);
}