'Н '.uniqid(), 'email' => 'ph'.uniqid().'@s.local', 'password' => bcrypt('x'), 'role' => 'head', 'is_active' => true, ]); $p = SalesProspect::create([ 'sales_user_id' => $head->id, 'firm_name' => 'ООО Ромашка', 'city' => 'Ростов-на-Дону', 'phone' => '+78001234567', 'inn' => '6161000000', 'payload' => ['director' => 'Иванов И.И.', 'direct_budget_max' => 200000], ]); expect($p->stage)->toBe('new') ->and($p->payload)->toBeArray() ->and($p->payload['director'])->toBe('Иванов И.И.') ->and($p->salesUser->id)->toBe($head->id); });