You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use MockAction for content_url test, drop spy from the others
Replace the bespoke by-ref-closure spy (not used elsewhere in
tests/phpunit/) with the idiomatic MockAction helper. Keep the spy
only on test_unparseable_content_url_returns_false, where the early
return is the only thing distinguishing the new branch from the
fallback path tail-end load_script_translations(false, ...) call.
The other two tests do not need a spy: removing the early return for
unparseable src triggers the "Automatic conversion of false to array"
deprecation, and reverting the is_string guard triggers a TypeError
in str_ends_with() -- both surface as test failures already.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
0 commit comments