Skip to content

Commit

Permalink
mock register_deactivation_hook in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 17, 2025
1 parent b59a7f7 commit a9e7059
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ function number_format_i18n($number, $decimals = 0)
{
return number_format($number, $decimals);
}
function register_activation_hook($a, $b)
function register_activation_hook($file, $callback)
{
}
function register_deactivation_hook($file, $callback)
{
}
function update_option($a, $b, $c = false)
Expand Down

0 comments on commit a9e7059

Please sign in to comment.