Skip to content

expectHookNotAdded should accept priority and arguments parameters with defaults as expectHookAdded #233

@unfulvio-godaddy

Description

@unfulvio-godaddy

Bug report

Adding a filter or action hook in code with a priority or param numbers different than 10, 1 means currently using expectHookNotAdded may not work since it has hardcoded values of 10, 1: https://github.com/10up/wp_mock/blob/trunk/php/WP_Mock.php#L376

Proposed solution

Add new parameters to expectHookNotAdded similar to expectHookAdded and assign a default of 10, 1 to keep current behavior.

Metadata

Metadata

Labels

BugBug report or pull requests that addresses a bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions