defaults() ->has(Membership::factory()->inNami(60)->in('€ LeiterIn', 63)) ->inNami(123) ->create(); app(MemberFake::class)->shows(55, 123, [ 'vorname' => '::firstname::', 'nachname' => '::lastname::', 'beitragsartId' => 300, 'geburtsDatum' => '2014-07-11 00:00:00', 'gruppierungId' => 1000, 'id' => 123, 'eintrittsdatum' => '2020-11-17 00:00:00', 'geschlechtId' => 303, 'landId' => 302, 'staatsangehoerigkeitId' => $member->nationality->nami_id, 'zeitschriftenversand' => true, 'strasse' => '::street', 'plz' => '12346', 'ort' => '::location::', 'gruppierung' => 'testgroup', 'version' => 40, ]); 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', ]); app(CourseFake::class)->fetches(123, []); $this->withoutExceptionHandling()->login()->loginNami(); app(MemberPullAction::class) ->api(app(NamiSettings::class)->login()) ->member(55, $member->nami_id) ->execute(); $this->assertDatabaseMissing('memberships', [ 'member_id' => $member->id, ]); } }