Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Replace deprecated PHPUnit
assertObject(Not)HasAttribute
(#3…
…3268) PHPUnit 10 at first removed this but then in 10.1 re-added it as `assertObject(Not)HasProperty`. Now that a replacement exists, yoast/phpunit-polyfills provides a polyfill, so let's make use of it. Note WordPress's `WP_UnitTestCase` and WorDBless's `WorDBless\BaseTestCase` both already include all Yoast polyfill traits, so explicit use of the trait is only needed for things using PHPUnit's base class. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/6302853196
- Loading branch information