From 2313375b71daa1a1543b2c57695204d6dc90dadd Mon Sep 17 00:00:00 2001 From: Stanislau Komar Date: Fri, 20 Jan 2023 04:57:27 +0400 Subject: [PATCH] Update unit tests --- psalm.xml | 6 +++++- tests/Unit/Business/Locator/RouteCodeLocatorTest.php | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/psalm.xml b/psalm.xml index ee97e34..71270f8 100644 --- a/psalm.xml +++ b/psalm.xml @@ -15,7 +15,11 @@ - + + + + + diff --git a/tests/Unit/Business/Locator/RouteCodeLocatorTest.php b/tests/Unit/Business/Locator/RouteCodeLocatorTest.php index 62f9154..103eb29 100644 --- a/tests/Unit/Business/Locator/RouteCodeLocatorTest.php +++ b/tests/Unit/Business/Locator/RouteCodeLocatorTest.php @@ -28,9 +28,9 @@ public function testLocate() ->expects($this->once()) ->method('plugins') ->with(RouteProviderPluginInterface::class) - ->willReturn([ + ->willReturn(new \ArrayObject([ $this->createRouteProvider(), - ]); + ])); $routerCodeLocator = new RouteCodeLocator($kernel, $httpFacadeMock); foreach ($routerCodeLocator->locate() as $route) {