Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/BillingTest.php
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public function testNearFullTrial(): void | ||||
$this->assertEquals(0, $this->wallet->expectedCharges()); | $this->assertEquals(0, $this->wallet->expectedCharges()); | ||||
} | } | ||||
/** | /** | ||||
* Verify the exact end of the month's trial. | * Verify the exact end of the month's trial. | ||||
*/ | */ | ||||
public function testFullTrial(): void | public function testFullTrial(): void | ||||
{ | { | ||||
$this->backdateEntitlements($this->wallet->entitlements, Carbon::now()->subMonthsWithoutOverflow(1)); | $this->backdateEntitlements( | ||||
$this->wallet->entitlements, | |||||
Carbon::now()->subMonthsWithoutOverflow(1) | |||||
); | |||||
$this->assertEquals(999, $this->wallet->expectedCharges()); | $this->assertEquals(999, $this->wallet->expectedCharges()); | ||||
} | } | ||||
/** | /** | ||||
* Verify that over-running the trial by a single day causes charges to be incurred. | * Verify that over-running the trial by a single day causes charges to be incurred. | ||||
*/ | */ | ||||
public function testOutRunTrial(): void | public function testOutRunTrial(): void | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |