Skip to content

Commit

Permalink
ORC-400: Add headers checks to existing composer behat package - upda…
Browse files Browse the repository at this point in the history
…te tests

Signed-off-by: Serhii Donii <serhii.donii@macpaw.com>
  • Loading branch information
serhiidonii committed Feb 16, 2024
1 parent 8dba2a4 commit 713348a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Unit/Context/WhenApiContextsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ protected function configureRouter(): RouterInterface
$router->expects($this->once())
->method('generate')
->willThrowException(new RouteNotFoundException());
} else {
$router->expects($this->once())
->method('generate')
->willReturn('/api/users/1');
}

assert($router instanceof RouterInterface);
Expand Down

0 comments on commit 713348a

Please sign in to comment.