diff --git a/tests/DefaultLogWriterTest.php b/tests/DefaultLogWriterTest.php index 5728a52..ad22f9c 100644 --- a/tests/DefaultLogWriterTest.php +++ b/tests/DefaultLogWriterTest.php @@ -82,7 +82,7 @@ public function it_logs_files() } /** @test */ - public function it_logs_files_in_an_array() + public function it_logs_one_file_in_an_array() { $file = $this->getTempFile(); @@ -98,4 +98,24 @@ public function it_logs_files_in_an_array() $this->assertStringContainsString('test.md', $log); } + + /** @test */ + public function it_logs_multiple_files_in_an_array() + { + $file = $this->getTempFile(); + + $request = $this->makeRequest('post', $this->uri, [], [], [ + 'files' => [ + new UploadedFile($file, 'first.doc'), + new UploadedFile($file, 'second.doc'), + ], + ]); + + $this->logger->logRequest($request); + + $log = $this->readLogFile(); + + $this->assertStringContainsString('first.doc', $log); + $this->assertStringContainsString('second.doc', $log); + } }