Fix phpunit tests

This commit is contained in:
dinamiko 2021-06-04 11:57:25 +02:00
parent 064fab6e64
commit 35c959718e
4 changed files with 44 additions and 18 deletions

View file

@ -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',