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

PHP - validate mustache template
Ranging date equal to today date
how to make proper php form validation
A circular reference has been detected in Symfony
webpages work well on local server but online it doesn't
How to reconcile ENUM / option values in relational SQL with accepted PHP values without having to maintain identical value lists in both places?
Get Template Directory Timber/Twig
extracting Wix object properties
Check if email already exist [duplicate]
How to establish the connection to database in PHP Laravel Lumen?
Laravel Eloquent saving relational model fails
How to filter the data on ListView with FunDapter?
Get count of fields with a specific value in a row? mysqli-php
uploaded image display as rotated in yii
How can I build a file/dir path map in PHP?
500 internal server error on drupal admin pages when adding a custom theme

Categories

HOME
php
ionic2
webview
magento2
paypal-ipn
whmcs
biztalk
websocket
autocomplete
web2py
amp
ontology
openfoam
mailing-list
siesta
sap-fiori
csrf
spring-amqp
corona
fresco
google-tasks-api
google-cloud-logging
playframework-2.0
http-authentication
azure-machine-learning
anova
ava
exchange-server-2010
fusetools
plyr
oracleforms
unmarshalling
source-insight
quick-nimble
plantuml
winrm
creation
spring-rabbitmq
runtimeexception
love2d
cartopy
eclipse-gmf
extbase
iscroll
microkernel
stat
python-jira
jacoco-maven-plugin
plane
resampling
vb.net-to-c#
fiware-wirecloud
ipp-protocol
liteide
roracle
icecast
amazon-elastic-beanstalk
spring.net
dtd
.when
instafeedjs
ternary-operator
yui3
livereload
system.web.optimization
callouts
between
wolfram-language
fragmentstatepageradapter
piping
frame-grab
exists
fdt
i2b2
openmrs
management-studio-express
ioexception
arbre
lowercase
chicagoboss
auto-generate
gluon-desktop
apple
swagger-maven-plugin
unidata
shoes
gflags
dnsjava
flurry-analytics
otl
treeline
forio-contour
gpu-programming
spring-social-linkedin
vlab
itunes-sdk
2d-vector
simplecov
first-class
image-scanner
algol68
microblogging
dynamic-c
net-use
chunking
urchin
ixmldomdocument
facebook-fbml
3270
ntruencrypt
ning
acceleration

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