mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Log endpoint errors
This commit is contained in:
parent
efb5ab3d14
commit
7ef5991cb8
9 changed files with 108 additions and 30 deletions
|
@ -8,6 +8,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Entity\PurchaseUnit;
|
|||
use WooCommerce\PayPalCommerce\ApiClient\Repository\CartRepository;
|
||||
use WooCommerce\PayPalCommerce\TestCase;
|
||||
use Mockery;
|
||||
use WooCommerce\WooCommerce\Logging\Logger\NullLogger;
|
||||
use function Brain\Monkey\Functions\expect;
|
||||
|
||||
class ChangeCartEndpointTest extends TestCase
|
||||
|
@ -68,7 +69,8 @@ class ChangeCartEndpointTest extends TestCase
|
|||
$shipping,
|
||||
$requestData,
|
||||
$cartRepository,
|
||||
$dataStore
|
||||
$dataStore,
|
||||
new NullLogger()
|
||||
);
|
||||
|
||||
expect('wp_send_json_success')
|
||||
|
@ -171,4 +173,4 @@ class ChangeCartEndpointTest extends TestCase
|
|||
|
||||
return $testData;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue