回答編集履歴
2
修正
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')), '
|
41
|
+
$this->prepareUrlForRequest(route('post')), 'POST', [],
|
42
42
|
[], $files, $this->serverVariables);
|
43
43
|
$request = Request::createFromBase($symfonyRequest);
|
44
44
|
|
1
修正
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 = [])
|