Fixed: Display BillKind in Edit page
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2022-12-06 23:20:05 +01:00
parent 74575998fa
commit 1f103b7539
2 changed files with 16 additions and 0 deletions

View File

@ -54,6 +54,7 @@ class MemberResource extends JsonResource
'other_country' => $this->other_country,
'confession_id' => $this->confession_id,
'letter_address' => $this->letter_address,
'bill_kind' => optional($this->bill_kind)->value,
'bill_kind_name' => optional($this->bill_kind)->value,
'has_nami' => null !== $this->nami_id,
'children_phone' => $this->children_phone,

View File

@ -61,4 +61,19 @@ class EditTest extends TestCase
'multiply_more_pv' => true,
], $response, 'data');
}
public function testItDisplaysSystem(): void
{
$this->withoutExceptionHandling()->login()->loginNami();
$member = Member::factory()
->defaults()
->emailBillKind()
->create();
$response = $this->get(route('member.edit', ['member' => $member]));
$this->assertInertiaHas([
'bill_kind' => 'E-Mail',
], $response, 'data');
}
}