从单元测试中调用资源控制器时的奇怪行为

时间:2014-12-18 21:15:48

标签: php unit-testing laravel-4

routes.php文件

Route::resource('job.comment','PostCommentController');

PostCommentController :: testComment()

$response = $this->route('POST','job.comment.store',array('this one is stripped' => 'why?','body' => "body","job_id" => $job->id));

当我转储Input :: all()时,不会收到第一个参数。在我将项目升级到Laravel 4.1之后,这不是问题。*并且似乎没有影响任何其他测试。

0 个答案:

没有答案
相关问题