-
Running WPLoader tests causes most RankMath methods to fail, since
Helper::is_invalid_registration()checks to see if therank_math_registration_skipoption is set.Since RankMath::$instance is static with no way to reinitialize the containers, the only workaround is to run more time-consuming
WPDbtests, callingwp option update rank_math_registration_skip 1before the test database is exported for use.It would be much better for for developers creating RankMath extensions if there was a PHP constant
RANK_MATH_REGISTRATION_SKIPthat we could use when running tests.I will submit a PR to the GitHub repo for consideration shortly.
The ticket ‘Feature Request: add `RANK_MATH_REGISTRATION_SKIP` constant’ is closed to new replies.