mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix test
This commit is contained in:
parent
6aa75e62d4
commit
5f448e8932
1 changed files with 15 additions and 6 deletions
|
@ -171,12 +171,17 @@ class WcGatewayTest extends TestCase
|
|||
|
||||
expect('wc_add_notice');
|
||||
|
||||
$result = $testee->process_payment($orderId);
|
||||
|
||||
$this->assertArrayHasKey('errorMessage', $result);
|
||||
unset($result['errorMessage']);
|
||||
|
||||
$this->assertEquals(
|
||||
[
|
||||
'result' => 'failure',
|
||||
'redirect' => $redirectUrl
|
||||
'redirect' => $redirectUrl,
|
||||
],
|
||||
$testee->process_payment($orderId)
|
||||
$result
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -217,10 +222,14 @@ class WcGatewayTest extends TestCase
|
|||
$session->shouldReceive('get');
|
||||
|
||||
$result = $testee->process_payment($orderId);
|
||||
$this->assertEquals(
|
||||
[
|
||||
'result' => 'failure',
|
||||
'redirect' => $redirectUrl
|
||||
|
||||
$this->assertArrayHasKey('errorMessage', $result);
|
||||
unset($result['errorMessage']);
|
||||
|
||||
$this->assertEquals(
|
||||
[
|
||||
'result' => 'failure',
|
||||
'redirect' => $redirectUrl,
|
||||
],
|
||||
$result
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue