php


PHPUnit Post request for a Symfony2 controller


I am writing a little test that "should" change a database value based on the post request I send, but I check my test database and clearly nothing is changing. I know this API works because I did a test using CURL through the CLI and it was not a problem.
$crawler = $client->request('POST', '/api/hardware_version/00-11-22-33-44-55', array('hardware_version' => 10));
The post param variable name is correct, but nothing is changing. What's the best way to send a post request in a PHPUnit functional test?

Related Links

how to remove whole img element with a SRC value in an UTF-8 string?
PHP get current class name in inherited class
Communicating between Mysql php and Objective c
View not Recognizing the methods of the Model in PHP
laravel 5 boilerplate app not working
How to call an executable file from a PHP script
Pass array from view to models in codeigniter
RecursiveDirectoryIterator indent subfolders
Yii2 — PHP Notice 'yii\base\ErrorException' with message 'unserialize(): Error at offset 8189 of 8192 bytes'
Which is the best shopping cart for Laravel 5? [closed]
add mysql query values to an php array
Inserting multiple values in database codeigniter?
How get Date from Database in Other country language?
How to connect multiple html pages in one wordpress theme?
Sorting Round Robin matches
How do I securely create a Cron Job from my PHP App?

Categories

HOME
qt
webview
mod-rewrite
keyboard
tomcat
apple-push-notifications
yahoo-weather-api
opencv-python
foaf
ant
risk-management
yql
lvm
gentelella
iptables
tibco
port
yeoman-generator-angular
nexus3
watch-os-3
erd
feature-extraction
xbap
freertos
twisted
google-cloud-logging
cloudsim
xsl-fo
pfobject
unity-container
unordered-multimap
tracing
webviewclient
macromedia
bobo-browse.net
social-networking
amazon-iam
monitor
db2-luw
transform
busboy
python-sounddevice
windows-store
utf
hdiv
viewcontroller
apache-toree
cyanogenmod
return-type
tinyioc
roracle
sony-future-lab-n
knockout-2.0
md5-file
gestures
subforms
scala-collections
dtd
dblink
msxml
boost-compute
multi-touch
gcloud-node
node.js-connect
apache-pig-grunt
odp.net-managed
gridbaglayout
m4
featuretoggle
postal-code
actionpack
physicsjs
text-align
mutators
uno
adhoc-polymorphism
encryption-symmetric
dnsjava
dc
igor
oracle-adf-mobile
angular-ui-select
stripe.net
forceclose
.htpasswd
san
notifyjs
form-for
blobstorage
semicolon
xmlwriter
xalan
multiscaleimage
border-box
image-formats
gamesalad
series-40
uploading
kolite
qt-mobility
office-automation
kext
webresponse
downgrade
tabbarcontroller
rawcontacts
bucket
inversion
twitter-feed

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile