From d8d5cbb4c046f0dcc30de68eb5a2601f2acb71ce Mon Sep 17 00:00:00 2001 From: Chris Nizzardini Date: Sun, 25 Feb 2024 10:03:29 -0500 Subject: [PATCH] Update how swagger is constructed in the test --- .../Lib/Operation/OperationResponseAssociationTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestCase/Lib/Operation/OperationResponseAssociationTest.php b/tests/TestCase/Lib/Operation/OperationResponseAssociationTest.php index ae0e4ceb..eb6e2583 100644 --- a/tests/TestCase/Lib/Operation/OperationResponseAssociationTest.php +++ b/tests/TestCase/Lib/Operation/OperationResponseAssociationTest.php @@ -104,8 +104,9 @@ public function test_white_list(): void public function test_false_white_list(): void { + $swagger = (new SwaggerFactory($this->config, new RouteScanner(new Router(), $this->config)))->create(); $assoc = new OperationResponseAssociation( - (new SwaggerFactory($this->config, new RouteScanner($this->router, $this->config)))->create(), + $swagger, $this->routes['employees:view'], null );