-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
WP_Mock::expectHookNotAdded()
with new params (#234)
<!-- Filling out the required portions of this template is mandatory. Any PR that does not include enough information to be reviewed may be closed at a maintainers' discretion. All new code requires associated documentation and unit tests. --> # Summary <!-- Required --> Adds method params to `expectHookNotAdded` for priority and allowed arguments that are symmetrical to `expectHookAdded` - and carries them over the aliased functions for filter and action hooks. This way, we can set more specific expectations than assuming hooks will always have `10, 1` as priority/args allowed. The PR also improves the WP_Mock hook methods phpdocs and types to match current standards. ### Closes: #233 ## Contributor checklist <!-- Required --> <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you are unsure about any of these, please ask for clarification. We are here to help! --> - [x] I agree to follow this project's [**Code of Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md). - [x] I have updated the documentation accordingly - [x] I have added tests to cover changes introduced by this pull request - [x] All new and existing tests pass ### Reviewer checklist <!-- Required --> <!-- The following checklist is for the reviewer: add any steps that may be relevant while reviewing this pull request --> - [x] Code changes review - [ ] Documentation changes review - [x] Unit tests pass - [x] Static analysis passes
- Loading branch information
1 parent
de812e4
commit e9e421c
Showing
5 changed files
with
149 additions
and
170 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
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
Oops, something went wrong.