-
Notifications
You must be signed in to change notification settings - Fork 125
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
Showing
5 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters