Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Oct 11, 2024
1 parent 1f5ff00 commit f00a94c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public function testApplePayScriptDataOnProduct()
'wc_get_product' => $this->wcProduct(),
'admin_url' => 'admin-ajax.php',
'get_option' => false,
'is_admin' => false,
]
);

Expand Down Expand Up @@ -97,6 +98,7 @@ public function testApplePayScriptDataOnCart()
'admin_url' => 'admin-ajax.php',
'WC' => $this->wooCommerce($subtotal),
'wp_nonce_field'=> 'testNonce',
'is_admin' => false,
]
);

Expand Down
5 changes: 4 additions & 1 deletion tests/php/Functional/ApplePayButton/ResponsesToAppleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public function testAppleFormattedResponseWithoutShippingMethod()
]

];

//shippingMethods is null this is not going to run
$applePayRequestDataObject = [];
expect('get_bloginfo')
->once()
->with('name')
Expand Down Expand Up @@ -107,6 +108,8 @@ public function testAppleFormattedResponseWithShippingMethod()
'taxes' => $taxes,
'total' => $total
];
//shippingMethods is null this is not going to run
$applePayRequestDataObject = [];
$expectedResponse = [
'newLineItems'=>[
[
Expand Down

0 comments on commit f00a94c

Please sign in to comment.