Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Feb 12, 2022
1 parent 3a14f1f commit 59e0a67
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/Stripe/GeneratedExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2696,4 +2696,30 @@ public function testRetrievePaymentLink()
$result = $this->client->paymentLinks->retrieve('pl_xyz', []);
static::assertInstanceOf(\Stripe\PaymentLink::class, $result);
}

public function testVerifyMicrodepositsPaymentIntent()
{
$this->expectsRequest(
'post',
'/v1/payment_intents/pi_xxxxxxxxxxxxx/verify_microdeposits'
);
$result = $this->client->paymentIntents->verifyMicrodeposits(
'pi_xxxxxxxxxxxxx',
[]
);
static::assertInstanceOf(\Stripe\PaymentIntent::class, $result);
}

public function testVerifyMicrodepositsSetupIntent()
{
$this->expectsRequest(
'post',
'/v1/setup_intents/seti_xxxxxxxxxxxxx/verify_microdeposits'
);
$result = $this->client->setupIntents->verifyMicrodeposits(
'seti_xxxxxxxxxxxxx',
[]
);
static::assertInstanceOf(\Stripe\SetupIntent::class, $result);
}
}

0 comments on commit 59e0a67

Please sign in to comment.