Rebuilds text format and permission caches in the thread running the tests.
protected function resetFilterCaches() { filter_formats_reset(); $this ->checkPermissions(array(), TRUE); }