function FilterDefaultFormatTest::resetFilterCaches

Same name in other branches
  1. 9 core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php \Drupal\Tests\filter\Functional\FilterDefaultFormatTest::resetFilterCaches()
  2. 8.9.x core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php \Drupal\Tests\filter\Functional\FilterDefaultFormatTest::resetFilterCaches()
  3. 11.x core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php \Drupal\Tests\filter\Functional\FilterDefaultFormatTest::resetFilterCaches()

Rebuilds text format and permission caches in the thread running the tests.

1 call to FilterDefaultFormatTest::resetFilterCaches()
FilterDefaultFormatTest::testDefaultTextFormats in core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php
Tests if the default text format is accessible to users.

File

core/modules/filter/tests/src/Functional/FilterDefaultFormatTest.php, line 85

Class

FilterDefaultFormatTest
Tests the default text formats for different users.

Namespace

Drupal\Tests\filter\Functional

Code

protected function resetFilterCaches() {
    filter_formats_reset();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.