Skip to content

Commit

Permalink
test: Update tests with new method name
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciocunado committed Aug 22, 2024
1 parent 96dc165 commit d7612f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/BillableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function canFindInvoiceByOrderIdUsingFindInvoiceByOrderIdOrFail()
}

/** @test */
public function testHasActiveSubscriptions()
public function testHasActiveSubscription()
{
$this->withConfiguredPlans();
$this->withMockedCouponRepository(); // 'test-coupon'
Expand All @@ -303,14 +303,14 @@ public function testHasActiveSubscriptions()
]);
$user->newSubscription('default', 'monthly-10-1')->create();

$this->assertTrue($user->hasActiveSubscriptions());
$this->assertTrue($user->hasActiveSubscription());
}

/** @test */
public function testHasActiveSubscriptionsFalse()
{
$user = User::factory()->create();

$this->assertFalse($user->hasActiveSubscriptions());
$this->assertFalse($user->hasActiveSubscription());
}
}

0 comments on commit d7612f5

Please sign in to comment.