Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Feature/TenantTest.php
Show All 24 Lines | class TenantTest extends TestCase | ||||
} | } | ||||
/** | /** | ||||
* Test Tenant::wallet() method | * Test Tenant::wallet() method | ||||
*/ | */ | ||||
public function testWallet(): void | public function testWallet(): void | ||||
{ | { | ||||
$tenant = Tenant::find(1); | $tenant = Tenant::find(1); | ||||
$user = \App\User::where('email', 'reseller@kolabnow.com')->first(); | $user = \App\User::where('email', 'reseller@' . \config('app.domain'))->first(); | ||||
$wallet = $tenant->wallet(); | $wallet = $tenant->wallet(); | ||||
$this->assertInstanceof(\App\Wallet::class, $wallet); | $this->assertInstanceof(\App\Wallet::class, $wallet); | ||||
$this->assertSame($user->wallets->first()->id, $wallet->id); | $this->assertSame($user->wallets->first()->id, $wallet->id); | ||||
} | } | ||||
} | } |