Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Asisyas committed Jan 20, 2023
1 parent e2f4f54 commit 2313375
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
</projectFiles>

<issueHandlers>

<ArgumentTypeCoercion>
<errorLevel type="info">
<file name="src/HttpRouterCodePlugin.php"/>
</errorLevel>
</ArgumentTypeCoercion>
<UnnecessaryVarAnnotation>
<errorLevel type="suppress">
<file name="src/HttpRouterCodePlugin.php"/>
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Business/Locator/RouteCodeLocatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2313375

Please sign in to comment.