Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/Documents/ReceiptTest.php
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Lines | protected function getTestData(string $country = null): Wallet | ||||
$payment = Payment::create([ | $payment = Payment::create([ | ||||
'id' => 'AAA4', | 'id' => 'AAA4', | ||||
'status' => PaymentProvider::STATUS_OPEN, | 'status' => PaymentProvider::STATUS_OPEN, | ||||
'type' => PaymentProvider::TYPE_ONEOFF, | 'type' => PaymentProvider::TYPE_ONEOFF, | ||||
'description' => 'Payment not yet paid', | 'description' => 'Payment not yet paid', | ||||
'wallet_id' => $wallet->id, | 'wallet_id' => $wallet->id, | ||||
'provider' => 'stripe', | 'provider' => 'stripe', | ||||
'amount' => 999, | 'amount' => 990, | ||||
'currency' => 'CHF', | 'currency' => 'CHF', | ||||
'currency_amount' => 999, | 'currency_amount' => 990, | ||||
]); | ]); | ||||
$payment->updated_at = Carbon::create(2020, 5, 1, 0, 0, 0); | $payment->updated_at = Carbon::create(2020, 5, 1, 0, 0, 0); | ||||
$payment->save(); | $payment->save(); | ||||
// ... so we expect the five three on the receipt | // ... so we expect the five three on the receipt | ||||
$payment = Payment::create([ | $payment = Payment::create([ | ||||
'id' => 'AAA5', | 'id' => 'AAA5', | ||||
'status' => PaymentProvider::STATUS_PAID, | 'status' => PaymentProvider::STATUS_PAID, | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |