Skip to content

Commit 5182661

Browse files
committed
Fixing issues with test
1 parent 40529b9 commit 5182661

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/http/tests/Mappers/PsrRequestToGenericRequestMapperTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
use Psr\Http\Message\ServerRequestInterface;
1212
use ReflectionClass;
1313
use ReflectionMethod;
14+
use Tempest\Clock\GenericClock;
15+
use Tempest\Core\AppConfig;
1416
use Tempest\Cryptography\Tests\CreatesEncrypter;
17+
use Tempest\Http\Cookie\CookieManager;
1518
use Tempest\Http\Mappers\PsrRequestToGenericRequestMapper;
1619
use 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');

0 commit comments

Comments
 (0)