Add default bank account to member
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
fc2b3d6885
commit
4ecf2f4483
|
@ -210,6 +210,14 @@ class MemberResource extends JsonResource
|
||||||
'multiply_pv' => false,
|
'multiply_pv' => false,
|
||||||
'multiply_more_pv' => false,
|
'multiply_more_pv' => false,
|
||||||
'keepdata' => false,
|
'keepdata' => false,
|
||||||
|
'bank_account' => [
|
||||||
|
'iban' => '',
|
||||||
|
'bic' => '',
|
||||||
|
'blz' => '',
|
||||||
|
'bank_name' => '',
|
||||||
|
'person' => '',
|
||||||
|
'account_number' => '',
|
||||||
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,11 @@ class MemberIndexTest extends EndToEndTestCase
|
||||||
$this->callFilter('member.index', [])->assertInertiaPath('data.meta.default.country_id', Country::firstWhere('name', 'Deutschland')->id);
|
$this->callFilter('member.index', [])->assertInertiaPath('data.meta.default.country_id', Country::firstWhere('name', 'Deutschland')->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testItGetsDefaultBankAccount(): void
|
||||||
|
{
|
||||||
|
$this->callFilter('member.index', [])->assertInertiaPath('data.meta.default.bank_account.bic', '');
|
||||||
|
}
|
||||||
|
|
||||||
public function testItHandlesAddress(): void
|
public function testItHandlesAddress(): void
|
||||||
{
|
{
|
||||||
Member::factory()->defaults()->create(['address' => '']);
|
Member::factory()->defaults()->create(['address' => '']);
|
||||||
|
|
Loading…
Reference in New Issue