Closed unfulvio-godaddy closed 1 year ago
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
10, 1
expectHookNotAdded
Add new parameters to expectHookNotAdded similar to expectHookAdded and assign a default of 10, 1 to keep current behavior.
expectHookAdded
Bug report
Adding a filter or action hook in code with a priority or param numbers different than
10, 1
means currently usingexpectHookNotAdded
may not work since it has hardcoded values of10, 1
: https://github.com/10up/wp_mock/blob/trunk/php/WP_Mock.php#L376Proposed solution
Add new parameters to
expectHookNotAdded
similar toexpectHookAdded
and assign a default of10, 1
to keep current behavior.