Include test for when views exposed filter blocks are changed

Created on 31 August 2013, almost 11 years ago
Updated 28 April 2023, about 1 year ago

Provide updated test case for Views Exposed filter for when the exposed block is turned off. Testing that the exposed block disappears but the attach filter appears.

Original Post

Follow-up from #2078217: [meta] Write tests for deleting blocks provided by derivatives → .

If you have your exposed filters exposed as a block, and then you change the view to no longer provide them as blocks, you get a nice exception.

📌 Task
Status

Needs work

Version

9.5

Component
Block  →

Last updated 10 days ago

Created by

🇺🇸United States tim.plunkett Philadelphia

Live updates comments and jobs are added and updated live.
  • VDC

    Related to the Views in Drupal Core initiative.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot → tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.

  • 🇮🇳India Nikhil_110

    Attached patch against Drupal 9.5.x

    Patch #18 is not applied for Drupal 9.5.x so Inter-diff file is not added.

    Checking patch core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php...
    error: while searching for:
        $elements = $this->xpath('//form[@id=:id]', [':id' => $this->getExpectedExposedFormId($view)]);
        $this->assertCount(1, $elements, 'One exposed form block found.');
    
        // Test that the correct option is selected after form submission.
        $this->assertCacheContext('url');
        $this->assertTrue($this->assertSession()->optionExists('Content: Type', 'All')->isSelected());
    
    error: patch failed: core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php:262
    error: core/modules/views/tests/src/Functional/Plugin/ExposedFormTest.php: patch does not apply
  • last update about 1 year ago
    30,311 pass, 1 fail
Production build 0.69.0 2024