From d08b68b128eef72602436f7b02a1dd4c8cd627d1 Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Thu, 28 Feb 2019 08:25:48 -0600 Subject: [PATCH] Fix in ControllerTester for missing UserAgent when creating a request. --- system/Test/ControllerTester.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/Test/ControllerTester.php b/system/Test/ControllerTester.php index 5af730896c6c..0dad1b814c91 100644 --- a/system/Test/ControllerTester.php +++ b/system/Test/ControllerTester.php @@ -37,6 +37,7 @@ */ use CodeIgniter\HTTP\IncomingRequest; +use CodeIgniter\HTTP\UserAgent; use CodeIgniter\HTTP\Response; use CodeIgniter\HTTP\URI; use Config\App; @@ -90,7 +91,7 @@ public function controller(string $name) if (empty($this->request)) { - $this->request = new IncomingRequest($this->appConfig, $this->uri, $this->body); + $this->request = new IncomingRequest($this->appConfig, $this->uri, $this->body, new UserAgent()); } if (empty($this->response))