GlossaryStatusFilterTest.php
Same filename in other branches
Namespace
Drupal\Tests\views\Functional\UpdateFile
-
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;
/**
* Tests that the status filter is added to the glossary view.
*
* @group Update
* @group legacy
*/
class GlossaryStatusFilterTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.4.0.bare.standard.php.gz',
];
}
/**
* Tests the default glossary view.
*/
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']);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
GlossaryStatusFilterTest | Tests that the status filter is added to the glossary view. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.