diff --git a/tests/test_app/TestApp/Application.php b/tests/test_app/TestApp/Application.php index c610a7a40e8..d8cef3c4527 100644 --- a/tests/test_app/TestApp/Application.php +++ b/tests/test_app/TestApp/Application.php @@ -33,8 +33,8 @@ public function bootstrap() public function middleware($middleware) { - $middleware->push(new RoutingMiddleware()); - $middleware->push(function ($req, $res, $next) { + $middleware->add(new RoutingMiddleware()); + $middleware->add(function ($req, $res, $next) { $res = $next($req, $res); return $res->withHeader('X-Middleware', 'true');