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 = '

Small headers

small headers are allowed in restricted html by default'; - - // Check that the filter cache is empty for the test markup. - $cid = $this->computeFilterCacheId($original_markup, $restricted, '', TRUE); - $this->assertFalse(\Drupal::cache('filter')->get($cid)); - - // Check that the filter cache gets populated when check_markup is called. - $actual_markup = check_markup($original_markup, $restricted, '', TRUE); - $this->assertTrue(\Drupal::cache('filter')->get($cid)); - $this->assertIdentical(strpos($actual_markup, '

'), 0, 'The h4 tag is present in the resulting markup'); - - // Edit the restricted filter format. - $edit = array(); - $edit['filters[filter_html][settings][allowed_html]'] = ' '; - $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().