You are here

public function GlossaryStatusFilterTest::testGlossaryView in Drupal 9

Same name and namespace in other branches
  1. 8 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\Update

Code

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']);
}