Skip to content

Commit

Permalink
test: aguarda 03 segundos antes de buscar faturas
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewalkerescavador committed Jun 14, 2024
1 parent 79226c2 commit 69ca2eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/GuPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ public function testValidateCardWithTrial()
// Create Subscription
$subscription = $user->newSubscription('main', 'gold', [], ['payable_with' => 'credit_card'])->validateCard()->trialDays(30)->create($this->getTestToken());

sleep(30);

$this->assertEquals(1, $user->subscriptions()->count());
$this->assertEquals(1, $user->invoices(true)->count());
$this->assertEquals('refunded', $user->invoices(true)->first()->status);
Expand Down

0 comments on commit 69ca2eb

Please sign in to comment.