Skip to content

Commit 8eb13c9

Browse files
committed
Ignore this function, because we can't test XHR requests here.
1 parent 1a3d1a6 commit 8eb13c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Integrations/WooCommerce.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ public function track_add_to_cart_on_product_page() {
178178
* Track add to cart actions by direct link, e.g. ?product_type=download&add-to-cart=1&quantity=1
179179
*
180180
* @return void
181+
*
182+
* @codeCoverageIgnore Because we can't test XHR here.
181183
*/
182184
public function track_direct_add_to_cart() {
183185
if ( ! isset( $_REQUEST[ 'add-to-cart' ] ) || ! is_numeric( wp_unslash( $_REQUEST[ 'add-to-cart' ] ) ) ) {

0 commit comments

Comments
 (0)