Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Console/Data/Stats/CollectorTest.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public function testHandle(): void | ||||
$john = $this->getTestUser('john@kolab.org'); | $john = $this->getTestUser('john@kolab.org'); | ||||
$wallet = $john->wallet(); | $wallet = $john->wallet(); | ||||
\App\Payment::create([ | \App\Payment::create([ | ||||
'id' => 'test1', | 'id' => 'test1', | ||||
'description' => '', | 'description' => '', | ||||
'status' => PaymentProvider::STATUS_PAID, | 'status' => PaymentProvider::STATUS_PAID, | ||||
'amount' => 1000, | 'amount' => 1000, | ||||
'credit_amount' => 1000, | |||||
'type' => PaymentProvider::TYPE_ONEOFF, | 'type' => PaymentProvider::TYPE_ONEOFF, | ||||
'wallet_id' => $wallet->id, | 'wallet_id' => $wallet->id, | ||||
'provider' => 'mollie', | 'provider' => 'mollie', | ||||
'currency' => $wallet->currency, | 'currency' => $wallet->currency, | ||||
'currency_amount' => 1000, | 'currency_amount' => 1000, | ||||
]); | ]); | ||||
$code = \Artisan::call("data:stats:collector"); | $code = \Artisan::call("data:stats:collector"); | ||||
Show All 14 Lines |