質問するログイン新規登録

回答編集履歴

2

修正

2017/07/06 01:02

投稿

fagai
fagai

スコア2158

answer CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  $files = $this->extractFilesFromDataArray(['file' => UploadedFile::fake()->image('file.png', 600, 600)]);
40
40
  $symfonyRequest = SymfonyRequest::create(
41
- $this->prepareUrlForRequest(route('post')), 'post', [],
41
+ $this->prepareUrlForRequest(route('post')), 'POST', [],
42
42
  [], $files, $this->serverVariables);
43
43
  $request = Request::createFromBase($symfonyRequest);
44
44
 

1

修正

2017/07/06 01:02

投稿

fagai
fagai

スコア2158

answer CHANGED
@@ -1,6 +1,6 @@
1
1
  いまいち理由がよくわからなかったのですが直接その$this->postを追ってみましょう。
2
2
 
3
- 対象のコードは、Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.phpにあります。
3
+ 対象のコードは、Illuminate/Foundation/Testing/Concerns/MakesHttpRequestsクラス(/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequest.php)にあります。
4
4
 
5
5
  ```php
6
6
  public function post($uri, array $data = [], array $headers = [])