mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fix phpunit tests
This commit is contained in:
parent
064fab6e64
commit
35c959718e
4 changed files with 44 additions and 18 deletions
|
@ -231,11 +231,7 @@ class OrderEndpoint {
|
|||
$response = $this->request( $url, $args );
|
||||
if ( is_wp_error( $response ) ) {
|
||||
$error = new RuntimeException(
|
||||
sprintf(
|
||||
// translators: %s is the error message.
|
||||
__( 'Could not create order: %s', 'woocommerce-paypal-payments' ),
|
||||
$response->get_error_message()
|
||||
)
|
||||
__( 'Could not create order.', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
$this->logger->log(
|
||||
'warning',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue