php


Internal request does not send parameter when testing


I am using Dingo to manage the API of my application. It has a feature to dispatch an internal request (https://github.com/dingo/api/wiki/Internal-Requests), in the end it calls the Laravel internal request dispatcher.
I am facing the following problem: I make an internal request to a route, it is a POST with parameters. This internal request is called in a queue job. If the this internal request is executed in the queue job it works perfectly, however if in my PHPUnit tests the request is dispatched but the parameters are not sent.
I was debugging and in the controller and $request->input() returns an empty array, but $request->request->all() returns the parameters.
I need $request->input() to return the parameters propertly in all cases.
I am using Laravel 5.4 and Dingo v1.0.0-beta8.
Anyone?

Related Links

Writing to a file adds weird content at the end of the line
File upload $_FILES array is empty
regex to validate phone number
how to sort this array in php [closed]
Checkbox that updates dynamically
PHP form submit not working on specific machine
Select a specific text form .TXT and group the content
Re-populate upload file field in codeigniter?
Returning the string after manipulating html by DOMDocument
Call to a member function whereHas() on a non-object in laravel
Compare Value to String IF/FOR Statement
PHP _COOKIE not set despite it being set in the cookie header
CodeIgniter not fetching entire field data
preg_split regex lookback for multiple matches
Paging URL rewriting not working in php using .htaccess
How to add calculated column to mysql query result in php?

Categories

HOME
python-2.7
orientdb
windows-8.1
cucumber
kendo-dropdown
website
visual-studio-2010
bing-search
malware
iptables
specifications
mailing-list
reportviewer
freertos
heap-dump
google-tasks-api
android-5.1.1-lollipop
hdl
restier
python-appium
fstar
gravity-forms-plugin
ccavenue
bitbake
social-networking
substance
copy-protection
dotcms
commonsware-cwac
delayed-job
series
caesar-cipher
shapeless
winrm
markov-chains
java-stream
buildforge
wdk
installanywhere
uivisualeffectview
sspi
reset
viewcontroller
minikube
zend-form
kitura
liteide
rightnow-crm
django-static-precompiler
md5-file
renderman
freshdesk
android-mediarecorder
asp.net-web-api-routing
glassfish-4.1
network-protocols
degrees
instafeedjs
haraka
rational-performance-test
e
xmlbeans
livereload
system.web.optimization
carmen
xcode8-beta4
arbre
dsa
dynamics-ax-2012-r2
phpredis
deque
shell-extensions
mutators
dc
siena
iosched
boinc
san
revmob
acceptance-testing
notin
oembed
linkbutton
daap
kobold2d
quartz-core
gwt-celltable
fbml
litespeed
kernel32
fragment-identifier
solandra
source-code-protection
subtext
rakudo

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App