Log endpoint errors

This commit is contained in:
Alex P 2021-09-23 17:19:46 +03:00
parent efb5ab3d14
commit 7ef5991cb8
9 changed files with 108 additions and 30 deletions

View file

@ -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;
}
}
}