function FilterFormatAccessTest::resetFilterCaches

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

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

2 calls to FilterFormatAccessTest::resetFilterCaches()
FilterFormatAccessTest::setUp in core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
FilterFormatAccessTest::testFormatWidgetPermissions in core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php
Tests editing a page using a disallowed text format.

File

core/modules/filter/tests/src/Functional/FilterFormatAccessTest.php, line 335

Class

FilterFormatAccessTest
Tests access to text formats.

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.