GlossaryStatusFilterTest.php in Drupal 9
File
core/modules/views/tests/src/Functional/Update/GlossaryStatusFilterTest.php
View source
<?php
namespace Drupal\Tests\views\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Entity\View;
class GlossaryStatusFilterTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-9.0.0.filled.standard.php.gz',
];
}
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']);
}
}