loginNami(); $api = app(NamiSettings::class)->login(); app(SearchFake::class)->fetches(1, 0, [ MemberEntry::factory()->toMember(['groupId' => 100, 'id' => 20]), ]); PullMemberAction::shouldRun()->once()->with(100, 20); PullMembershipsAction::shouldRun()->once(); PullCoursesAction::shouldRun()->once(); app(InitializeMembers::class)->handle($api); } }