diff --git a/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml b/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml index 8b7bf6a..ad1631c 100644 --- a/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml +++ b/core/modules/taxonomy/config/install/views.view.taxonomy_term.yml @@ -105,9 +105,9 @@ display: dependencies: module: - taxonomy - default_action: ignore + default_action: 'not found' exception: - value: all + value: '' title_enable: false title: All title_enable: true diff --git a/core/modules/taxonomy/src/Tests/RssTest.php b/core/modules/taxonomy/src/Tests/RssTest.php index 8b9a286..03dc89c 100644 --- a/core/modules/taxonomy/src/Tests/RssTest.php +++ b/core/modules/taxonomy/src/Tests/RssTest.php @@ -8,7 +8,6 @@ namespace Drupal\taxonomy\Tests; use Drupal\Core\Field\FieldStorageDefinitionInterface; -use Drupal\views\Views; /** * Ensure that data added as terms appears in RSS feeds if "RSS Category" format @@ -111,23 +110,17 @@ function testTaxonomyRss() { // Check that the "Exception value" is disabled by default. $this->drupalGet('taxonomy/term/all/feed'); $this->assertResponse(404); - // Set the exception value to 'all'. - $view = Views::getView('taxonomy_term'); - $arguments = $view->getDisplay()->getOption('arguments'); - $arguments['tid']['exception']['value'] = 'all'; - $view->getDisplay()->overrideOption('arguments', $arguments); - $view->storage->save(); // Check the article is shown in the feed. $node = $this->drupalGetNodeByTitle($edit['title[0][value]']); $raw_xml = format_xml_elements([[ 'key' => 'title', 'value' => $node->label(), ]]); - $this->drupalGet('taxonomy/term/all/feed'); + $this->drupalGet("taxonomy/term/{$term1->id()}/feed"); $this->assertRaw($raw_xml); // Unpublish the article and check that it is not shown in the feed. $node->setPublished(FALSE)->save(); - $this->drupalGet('taxonomy/term/all/feed'); + $this->drupalGet("taxonomy/term/{$term1->id()}/feed"); $this->assertNoRaw($raw_xml); } }