mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +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\Token;
|
|||
use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException;
|
||||
use WooCommerce\PayPalCommerce\TestCase;
|
||||
use Mockery;
|
||||
use WooCommerce\WooCommerce\Logging\Logger\NullLogger;
|
||||
use function Brain\Monkey\Functions\when;
|
||||
use function Brain\Monkey\Functions\expect;
|
||||
|
||||
|
@ -22,7 +23,7 @@ class DataClientIdEndpointTest extends TestCase
|
|||
parent::setUp();
|
||||
$this->requestData = Mockery::mock(RequestData::class);
|
||||
$this->identityToken = Mockery::mock(IdentityToken::class);
|
||||
$this->sut = new DataClientIdEndpoint($this->requestData, $this->identityToken);
|
||||
$this->sut = new DataClientIdEndpoint($this->requestData, $this->identityToken, new NullLogger());
|
||||
}
|
||||
|
||||
public function testHandleRequestSuccess()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue