|
32 | 32 | use Config\Cookie; |
33 | 33 | use Config\Logger; |
34 | 34 | use Config\Modules; |
| 35 | +use Config\Routing; |
35 | 36 | use Config\Services; |
36 | 37 | use Kint; |
37 | 38 | use RuntimeException; |
@@ -124,7 +125,8 @@ public function testRedirectReturnsRedirectResponse() |
124 | 125 | $response = $this->createMock(Response::class); |
125 | 126 | $routes = new RouteCollection( |
126 | 127 | Services::locator(), |
127 | | - new Modules() |
| 128 | + new Modules(), |
| 129 | + new Routing() |
128 | 130 | ); |
129 | 131 | Services::injectMock('response', $response); |
130 | 132 | Services::injectMock('routes', $routes); |
@@ -389,7 +391,7 @@ public function testOldInput() |
389 | 391 | $this->config = new App(); |
390 | 392 | $this->config->baseURL = 'http://example.com/'; |
391 | 393 |
|
392 | | - $this->routes = new RouteCollection(Services::locator(), new Modules()); |
| 394 | + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); |
393 | 395 | Services::injectMock('routes', $this->routes); |
394 | 396 |
|
395 | 397 | $this->request = new MockIncomingRequest($this->config, new URI('http://example.com'), null, new UserAgent()); |
@@ -424,7 +426,7 @@ public function testOldInputSerializeData() |
424 | 426 | $this->config = new App(); |
425 | 427 | $this->config->baseURL = 'http://example.com/'; |
426 | 428 |
|
427 | | - $this->routes = new RouteCollection(Services::locator(), new Modules()); |
| 429 | + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); |
428 | 430 | Services::injectMock('routes', $this->routes); |
429 | 431 |
|
430 | 432 | $this->request = new MockIncomingRequest($this->config, new URI('http://example.com'), null, new UserAgent()); |
@@ -459,7 +461,7 @@ public function testOldInputArray() |
459 | 461 | $this->config = new App(); |
460 | 462 | $this->config->baseURL = 'http://example.com/'; |
461 | 463 |
|
462 | | - $this->routes = new RouteCollection(Services::locator(), new Modules()); |
| 464 | + $this->routes = new RouteCollection(Services::locator(), new Modules(), new Routing()); |
463 | 465 | Services::injectMock('routes', $this->routes); |
464 | 466 |
|
465 | 467 | $this->request = new MockIncomingRequest($this->config, new URI('http://example.com'), null, new UserAgent()); |
|
0 commit comments