Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Converting all the tests to BTB for #2821387: Convert all tests to BrowserTestBase, we discovered that TableSortExampleTest
's test needs to call drupal_flush_all_caches()
repeatedly in order to manage state.
This seems like a shortcoming in the code, rather than something we should demonstrate as a best practice in a test.
The tests fail if we remove the drupal_flush_all_caches()
lines.
Proposed resolution
Determine if the AJAX controller need to do a better job of maintaining their cache directives.
Fix that, if necessary.
Comments
Comment #2
Mile23Postponed on #2821387: Convert all tests to BrowserTestBase since we want to patch against the converted tests here.
Comment #3
rfayIt's actually not about the tests - it's about tablesort being nonfunctional if you're not admin. This is a dup of #2821742: Tablesort Example nonfunctional for non-admin user