File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/http/tests/Mappers Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1111use Psr \Http \Message \ServerRequestInterface ;
1212use ReflectionClass ;
1313use ReflectionMethod ;
14+ use Tempest \Clock \GenericClock ;
15+ use Tempest \Core \AppConfig ;
1416use Tempest \Cryptography \Tests \CreatesEncrypter ;
17+ use Tempest \Http \Cookie \CookieManager ;
1518use Tempest \Http \Mappers \PsrRequestToGenericRequestMapper ;
1619use Tempest \Http \Method ;
1720
@@ -26,7 +29,13 @@ protected function setUp(): void
2629 {
2730 parent ::setUp ();
2831
29- $ this ->mapper = new PsrRequestToGenericRequestMapper ($ this ->createEncrypter ());
32+ $ this ->mapper = new PsrRequestToGenericRequestMapper (
33+ $ this ->createEncrypter (),
34+ new CookieManager (
35+ new AppConfig (baseUri: 'https://test.com ' ),
36+ new GenericClock (),
37+ ),
38+ );
3039
3140 $ reflection = new ReflectionClass ($ this ->mapper );
3241 $ this ->requestMethod = $ reflection ->getMethod ('requestMethod ' );
You can’t perform that action at this time.
0 commit comments