Fixed: Display BillKind in Edit page
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
74575998fa
commit
1f103b7539
|
@ -54,6 +54,7 @@ class MemberResource extends JsonResource
|
||||||
'other_country' => $this->other_country,
|
'other_country' => $this->other_country,
|
||||||
'confession_id' => $this->confession_id,
|
'confession_id' => $this->confession_id,
|
||||||
'letter_address' => $this->letter_address,
|
'letter_address' => $this->letter_address,
|
||||||
|
'bill_kind' => optional($this->bill_kind)->value,
|
||||||
'bill_kind_name' => optional($this->bill_kind)->value,
|
'bill_kind_name' => optional($this->bill_kind)->value,
|
||||||
'has_nami' => null !== $this->nami_id,
|
'has_nami' => null !== $this->nami_id,
|
||||||
'children_phone' => $this->children_phone,
|
'children_phone' => $this->children_phone,
|
||||||
|
|
|
@ -61,4 +61,19 @@ class EditTest extends TestCase
|
||||||
'multiply_more_pv' => true,
|
'multiply_more_pv' => true,
|
||||||
], $response, 'data');
|
], $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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue