Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/BillingTest.php
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | public function testSecondMonth(): void | ||||
$this->assertEquals(2023, $this->wallet->expectedCharges()); | $this->assertEquals(2023, $this->wallet->expectedCharges()); | ||||
} | } | ||||
public function testWithDiscount(): void | public function testWithDiscount(): void | ||||
{ | { | ||||
$package = \App\Package::create( | $package = \App\Package::create( | ||||
[ | [ | ||||
'title' => 'kolab-kube', | 'title' => 'kolab-kube', | ||||
'name' => 'Kolab for Kuba Fans', | |||||
'description' => 'Kolab for Kube fans', | 'description' => 'Kolab for Kube fans', | ||||
'discount_rate' => 50 | 'discount_rate' => 50 | ||||
] | ] | ||||
); | ); | ||||
$skus = [ | $skus = [ | ||||
\App\Sku::firstOrCreate(['title' => 'mailbox']), | \App\Sku::firstOrCreate(['title' => 'mailbox']), | ||||
\App\Sku::firstOrCreate(['title' => 'storage']), | \App\Sku::firstOrCreate(['title' => 'storage']), | ||||
Show All 24 Lines |