mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Add scheduled action for checking payment captured
This commit is contained in:
parent
df549b6dff
commit
d064c257db
3 changed files with 27 additions and 0 deletions
|
@ -53,6 +53,9 @@ class PayUponInvoiceGatewayTest extends TestCase
|
|||
$payment_source
|
||||
)->andReturn($order);
|
||||
|
||||
define( 'MINUTE_IN_SECONDS', 60 );
|
||||
when('as_schedule_single_action')->justReturn();
|
||||
|
||||
$result = $this->testee->process_payment(1);
|
||||
$this->assertEquals('success', $result['result']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue