Changeset View
Changeset View
Standalone View
Standalone View
src/tests/TestCaseTrait.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | protected function createTestTransactions($wallet) | ||||
$entitlementTransactions[] = $entitlement->createTransaction( | $entitlementTransactions[] = $entitlement->createTransaction( | ||||
Transaction::ENTITLEMENT_BILLED, | Transaction::ENTITLEMENT_BILLED, | ||||
$entitlement->cost | $entitlement->cost | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
$transaction = Transaction::create([ | $transaction = Transaction::create([ | ||||
'user_email' => null, | 'user_email' => 'jeroen@jeroen.jeroen', | ||||
'object_id' => $wallet->id, | 'object_id' => $wallet->id, | ||||
'object_type' => \App\Wallet::class, | 'object_type' => \App\Wallet::class, | ||||
'type' => Transaction::WALLET_DEBIT, | 'type' => Transaction::WALLET_DEBIT, | ||||
'amount' => $debit, | 'amount' => $debit, | ||||
'description' => 'Payment', | 'description' => 'Payment', | ||||
]); | ]); | ||||
$result[] = $transaction; | $result[] = $transaction; | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |