diff --git a/core/modules/filter/lib/Drupal/filter/Tests/FilterAdminTest.php b/core/modules/filter/lib/Drupal/filter/Tests/FilterAdminTest.php index d7869f7..b159dc9 100644 --- a/core/modules/filter/lib/Drupal/filter/Tests/FilterAdminTest.php +++ b/core/modules/filter/lib/Drupal/filter/Tests/FilterAdminTest.php @@ -303,40 +303,6 @@ function testUrlFilterAdmin() { } /** - * Tests that changing filter properties clears the filter cache. - */ - public function testFilterAdminClearsFilterCache() { - $restricted = 'restricted_html'; - $original_markup = '
';
- $this->drupalPostForm('admin/config/content/formats/manage/' . $restricted, $edit, t('Save configuration'));
- $this->assertUrl('admin/config/content/formats');
- $this->drupalGet('admin/config/content/formats/manage/' . $restricted);
- $this->assertFieldByName('filters[filter_html][settings][allowed_html]', $edit['filters[filter_html][settings][allowed_html]'], 'Allowed HTML tag added.');
-
- // Check that the filter cache is empty after the format was changed.
- $this->assertFalse(\Drupal::cache('filter')->get($cid));
-
- // Check that after changind the filter, the changes are reflected in the
- // filtered markup.
- $actual_markup = check_markup($original_markup, $restricted, '', TRUE);
- $this->assertIdentical(strpos($actual_markup, ''), FALSE, 'The h4 tag is not present in the resulting markup');
- }
-
-
- /**
* Computes the cache-key for the given text just like check_markup().
*
* Note that this is copied over from check_markup().