Skip to content

Commit 9af0789

Browse files
committed
fix: wc warnings on tests
1 parent ebf4c3b commit 9af0789

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/bootstrap.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ function ( $trigger, $function_name ) {
5151
require ABSPATH . 'wp-content/mu-plugins/wpforms/wpforms.php';
5252
require ABSPATH . 'wp-content/mu-plugins/woocommerce/woocommerce.php';
5353

54+
add_filter(
55+
'woocommerce_load_webhooks_limit',
56+
function () {
57+
return -1;
58+
},
59+
90,
60+
);
61+
5462
/* Plugin tests */
5563
require dirname( __DIR__ ) . '/forms-bridge/deps/plugin/tests/bootstrap.php';
5664
}

0 commit comments

Comments
 (0)