'Демо '.uniqid(), 'email' => 'demo'.uniqid().'@s.local', 'password' => bcrypt('x'), 'role' => 'manager', 'is_active' => true, ]); $this->artisan('sales:prospects-demo', ['salesUserId' => $mgr->id])->assertExitCode(0); $stages = SalesProspect::where('sales_user_id', $mgr->id)->pluck('stage')->unique(); expect($stages)->toContain('new')->toContain('negotiation')->toContain('testing')->toContain('user'); });