From b223dbf190cc86e5de14893a9fdf362794d47b51 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 6 Feb 2023 01:25:41 +0100 Subject: [PATCH] Add member attributes --- app/Member/Actions/NamiPutMemberAction.php | 2 +- packages/laravel-nami | 2 +- tests/Feature/Member/NamiPutMemberActionTest.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Member/Actions/NamiPutMemberAction.php b/app/Member/Actions/NamiPutMemberAction.php index 323f0d69..51067087 100644 --- a/app/Member/Actions/NamiPutMemberAction.php +++ b/app/Member/Actions/NamiPutMemberAction.php @@ -36,7 +36,7 @@ class NamiPutMemberAction 'workPhone' => $member->work_phone, 'fax' => $member->fax, 'email' => $member->email, - 'email_parents' => $member->email_parents, + 'emailParents' => $member->email_parents, 'genderId' => optional($member->gender)->nami_id, 'confessionId' => $member->confession ? $member->confession->nami_id : Confession::firstWhere('is_null', true)->nami_id, 'regionId' => optional($member->region)->nami_id, diff --git a/packages/laravel-nami b/packages/laravel-nami index 5243b734..5eef3074 160000 --- a/packages/laravel-nami +++ b/packages/laravel-nami @@ -1 +1 @@ -Subproject commit 5243b7341dc466fe1eccf9f0304caad14138418d +Subproject commit 5eef3074d76dba843fa053e04d7637f056c05457 diff --git a/tests/Feature/Member/NamiPutMemberActionTest.php b/tests/Feature/Member/NamiPutMemberActionTest.php index 18c515fd..782f9d37 100644 --- a/tests/Feature/Member/NamiPutMemberActionTest.php +++ b/tests/Feature/Member/NamiPutMemberActionTest.php @@ -50,7 +50,7 @@ class NamiPutMemberActionTest extends TestCase ->for($gender) ->for($group) ->emailBillKind() - ->create(); + ->create(['email_parents' => 'a@b.de']); NamiPutMemberAction::run($member, $activity, $subactivity); @@ -58,6 +58,7 @@ class NamiPutMemberActionTest extends TestCase 'ersteTaetigkeitId' => 6, 'ersteUntergliederungId' => 55, 'konfessionId' => 567, + 'emailVertretungsberechtigter' => 'a@b.de', ]); $this->assertDatabaseHas('members', [ 'nami_id' => 993,