diff --git a/tests/GuPaymentTest.php b/tests/GuPaymentTest.php index 07bf3bb..174594f 100644 --- a/tests/GuPaymentTest.php +++ b/tests/GuPaymentTest.php @@ -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()