Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/WalletTest.php
Show All 19 Lines | class WalletTest extends TestCaseDusk | ||||
*/ | */ | ||||
public function setUp(): void | public function setUp(): void | ||||
{ | { | ||||
parent::setUp(); | parent::setUp(); | ||||
$this->deleteTestUser('wallets-controller@kolabnow.com'); | $this->deleteTestUser('wallets-controller@kolabnow.com'); | ||||
$john = $this->getTestUser('john@kolab.org'); | $john = $this->getTestUser('john@kolab.org'); | ||||
Wallet::where('user_id', $john->id)->update(['balance' => -1234]); | Wallet::where('user_id', $john->id)->update(['balance' => -1234, 'currency' => 'CHF']); | ||||
} | } | ||||
/** | /** | ||||
* {@inheritDoc} | * {@inheritDoc} | ||||
*/ | */ | ||||
public function tearDown(): void | public function tearDown(): void | ||||
{ | { | ||||
$this->deleteTestUser('wallets-controller@kolabnow.com'); | $this->deleteTestUser('wallets-controller@kolabnow.com'); | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |