Update IntegrationTestCase::_buildRequest
Update IntegrationTestCase::_buildRequest

Hi,

I'm not sure it's the better way to do this but, the method is currently not use in this method.
I'm tried to test my controller. #4606

When i used __$this->put('/actions/changeStatus/1.json', ['status_id' => 2])__. But on the action of the controller, the request don't have a variable environment __REQUEST_METHOD__.

So these lines above resolve this problem.

Jason.
justinyost/cakephp,jeffblack360/cakephp,adopico/cakephp,jeffblack360/cakephp,jerems02/cakephp,tenkoma/cakephp,web-player/cakephp,tgr0ss/cakephp,pbaire/cakephp,bravo-kernel/cakephp,petteyg/cakephp,CVO-Technologies/cakephp,garethellis36/cakephp,ndm2/cakephp,tenkoma/cakephp,akintoey/cakephp,kumamidori/cakephp,Balachan27/cakephp,CVO-Technologies/cakephp,petteyg/cakephp,elboletaire/cakephp,timhoeppner/cakephp,berrygoudswaard/cakephp,CakeDC/cakephp,mvdriel/cakephp,erikfig/cakephp,michaelze/cakephp,tgr0ss/cakephp,cakephp/cakephp,adopico/cakephp,nrother/cakephp,gmponos/cakephp,dkarvounaris/cakephp,ionas/cakephp,adopico/cakephp,justinyost/cakephp,eryw/cakephp,jjj117/cakephp,cakephp-fr/cakephp,mvdriel/cakephp,jjj117/cakephp,dakota/cakephp,pbaire/cakephp,burriko/cakephp,ADmad/cakephp,HavokInspiration/cakephp,dakota/cakephp,ADmad/cakephp,eboominathan/cakephp,thinkingmedia/cakephp,tisu2tisu/cakephp,akintoey/cakephp,tisu2tisu/cakephp,garethellis36/cakephp,CVO-Technologies/cakephp,eboominathan/cakephp,garethellis36/cakephp,berrygoudswaard/cakephp,HavokInspiration/cakephp,timhoeppner/cakephp,garethellis36/cakephp,kumamidori/cakephp,berrygoudswaard/cakephp,erikfig/cakephp,cakephp/cakephp,yinhe007/cakephp,burriko/cakephp,davidyell/cakephp,thinkingmedia/cakephp,ADmad/cakephp,davidyell/cakephp,tenkoma/cakephp,timhoeppner/cakephp,erikfig/cakephp,eryw/cakephp,CakeDC/cakephp,tenkoma/cakephp,yinhe007/cakephp,HavokInspiration/cakephp,ndm2/cakephp,dakota/cakephp,yinhe007/cakephp,petteyg/cakephp,elboletaire/cakephp,web-player/cakephp,michaelze/cakephp,kumamidori/cakephp,jerems02/cakephp,petteyg/cakephp,gmponos/cakephp,gmponos/cakephp,CakeDC/cakephp,eboominathan/cakephp,Balachan27/cakephp,ionas/cakephp,thinkingmedia/cakephp,Phillaf/cakephp,Balachan27/cakephp,cakephp-fr/cakephp,akintoey/cakephp,nrother/cakephp,dkarvounaris/cakephp,cakephp/cakephp,Phillaf/cakephp,khoimt/cakephp-study,khoimt/cakephp-study,bravo-kernel/cakephp,dakota/cakephp,mvdriel/cakephp,justinyost/cakephp,ndm2/cakephp,ndm2/cakephp,bravo-kernel/cakephp,cakephp-fr/cakephp,jeffblack360/cakephp,burriko/cakephp,CakeDC/cakephp,eryw/cakephp,jerems02/cakephp,tisu2tisu/cakephp,khoimt/cakephp-study,jjj117/cakephp,davidyell/cakephp,pbaire/cakephp,web-player/cakephp,mvdriel/cakephp,cakephp/cakephp,Phillaf/cakephp,ionas/cakephp,elboletaire/cakephp,dkarvounaris/cakephp,ADmad/cakephp,nrother/cakephp,michaelze/cakephp,tgr0ss/cakephp