Skip to content

Commit

Permalink
test: usa assinatura do iugu
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalkerescavador committed Jun 14, 2024
1 parent 69ca2eb commit 79076c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/GuPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,9 @@ public function testValidateCardWithTrial()
$this->assertEquals('refunded', $user->invoices(true)->first()->status);
$this->assertEquals(100, $user->invoices(true)->first()->total_cents);

$this->assertEquals('credit_card', $subscription->payable_with);
$subscriptionIugu = $user->subscription('main')->asIuguSubscription();

$this->assertEquals('credit_card', $subscriptionIugu->payable_with);
}

public function testCreateInvoice()
Expand Down

0 comments on commit 79076c4

Please sign in to comment.