From ee6927528fb2d2e63e2d425f7fecfbc8bebce223 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 16 Nov 2022 23:23:52 +0100 Subject: [PATCH] Add test for member pull --- tests/Feature/Member/MemberPullActionTest.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/Feature/Member/MemberPullActionTest.php b/tests/Feature/Member/MemberPullActionTest.php index 888fa876..506e74d5 100644 --- a/tests/Feature/Member/MemberPullActionTest.php +++ b/tests/Feature/Member/MemberPullActionTest.php @@ -3,7 +3,6 @@ namespace Tests\Feature\Member; use App\Actions\MemberPullAction; -use App\Activity; use App\Member\Member; use App\Member\Membership; use App\Setting\NamiSettings; @@ -21,7 +20,7 @@ class MemberPullActionTest extends TestCase { $member = Member::factory() ->defaults() - ->has(Membership::factory()->inNami(60)->for(Activity::factory())) + ->has(Membership::factory()->inNami(60)->in('€ LeiterIn', 63)) ->inNami(123) ->create(); app(MemberFake::class)->shows(55, 123, [ @@ -45,12 +44,12 @@ class MemberPullActionTest extends TestCase app(MembershipFake::class) ->fetches(123, [['id' => 60]]) ->shows(123, [ - 'id' => 60, - 'untergliederungId' => 2, - 'taetigkeitId' => 1, - 'gruppierungId' => 1400, - 'aktivVon' => '2022-02-03T00:00:00', - 'aktivBis' => '2022-02-03T00:00:01', + 'id' => 60, + 'untergliederungId' => 2, + 'taetigkeitId' => 1, + 'gruppierungId' => 1400, + 'aktivVon' => '2022-02-03T00:00:00', + 'aktivBis' => '2022-02-03T00:00:01', ]); app(CourseFake::class)->fetches(123, []); $this->withoutExceptionHandling()->login()->loginNami();