Error: Call to undefined function Drupal\deferjs\Form\drupal_flush_all_caches() in test coverage

Created on 15 October 2025, 12 days ago

Problem/Motivation

Getting error while running test coverage 1) Drupal\Tests\deferjs\Unit\Form\DeferJsFormTest::testSubmitForm
Error: Call to undefined function Drupal\deferjs\Form\drupal_flush_all_caches()

Steps to reproduce

Download the default branch code, having test coverage and run the test coverage.
Code coverage is 100% but getting below error
1) Drupal\Tests\deferjs\Unit\Form\DeferJsFormTest::testSubmitForm
Error: Call to undefined function Drupal\deferjs\Form\drupal_flush_all_caches()

Proposed resolution

Handling drupal_flush_all_caches() method in test coverage and raising a PR for the above issue.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Shubh02

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024