diff --git a/tests/system/CommonFunctionsTest.php b/tests/system/CommonFunctionsTest.php index cf0555fba3..92c853f4cf 100644 --- a/tests/system/CommonFunctionsTest.php +++ b/tests/system/CommonFunctionsTest.php @@ -32,6 +32,7 @@ use Config\App; use Config\Cookie; use Config\Logger; use Config\Modules; +use Config\Routing; use Config\Services; use Kint; use RuntimeException; @@ -124,7 +125,8 @@ final class CommonFunctionsTest extends CIUnitTestCase $response = $this->createMock(Response::class); $routes = new RouteCollection( Services::locator(), - new Modules() + new Modules(), + new Routing() ); Services::injectMock('response', $response); Services::injectMock('routes', $routes); @@ -389,7 +391,7 @@ final class CommonFunctionsTest extends CIUnitTestCase $this->config = new App(); $this->config->baseURL = 'http://example.com/'; - $this->routes = new RouteCollection(Services::locator(), new Modules()); + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); Services::injectMock('routes', $this->routes); $this->request = new MockIncomingRequest($this->config, new URI('http://example.com'), null, new UserAgent()); @@ -424,7 +426,7 @@ final class CommonFunctionsTest extends CIUnitTestCase $this->config = new App(); $this->config->baseURL = 'http://example.com/'; - $this->routes = new RouteCollection(Services::locator(), new Modules()); + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); Services::injectMock('routes', $this->routes); $this->request = new MockIncomingRequest($this->config, new URI('http://example.com'), null, new UserAgent()); @@ -459,7 +461,7 @@ final class CommonFunctionsTest extends CIUnitTestCase $this->config = new App(); $this->config->baseURL = 'http://example.com/'; - $this->routes = new RouteCollection(Services::locator(), new Modules()); + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); Services::injectMock('routes', $this->routes); $this->request = new MockIncomingRequest($this->config, new URI('http://example.com'), null, new UserAgent()); diff --git a/tests/system/HTTP/RedirectResponseTest.php b/tests/system/HTTP/RedirectResponseTest.php index 65fc0e62d0..22c3c719b7 100644 --- a/tests/system/HTTP/RedirectResponseTest.php +++ b/tests/system/HTTP/RedirectResponseTest.php @@ -19,6 +19,7 @@ use CodeIgniter\Test\Mock\MockIncomingRequest; use CodeIgniter\Validation\Validation; use Config\App; use Config\Modules; +use Config\Routing; use Config\Services; /** @@ -47,7 +48,7 @@ final class RedirectResponseTest extends CIUnitTestCase $this->config = new App(); $this->config->baseURL = 'http://example.com/'; - $this->routes = new RouteCollection(Services::locator(), new Modules()); + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); Services::injectMock('routes', $this->routes); $this->request = new MockIncomingRequest(