Add expectHookRemoved and expectHookNotRemoved support

Open
#157 0 comments 0 reactions 1 assignee View on GitHub

@ericmann is already working on this.

Since Feb 9, 2021.

  • #246 by @BrianHenryIE — open

Assessment

This issue has not been assessed yet.

Description

Enhancement Help Wanted

WP_Mock provides useful helpers for expectFilterAdded and expectFilterNotAdded, and heir companion for actions. However, we have no canonical way of checking remove_action nor remove_filter calls.

It would be fantastic to extend the current hooks helpers to cover those.

Dominant language
PHP
Stars
714
Forks
72
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/wp_mock

All issues in 10up/wp_mock

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.