fix some tests

This commit is contained in:
Julien Fastré 2024-09-05 16:47:45 +02:00
parent 3c9ee41b3b
commit 8ea87053f0
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -220,7 +220,8 @@ final class StoredObjectManagerTest extends TestCase
->willReturnCallback(fn (string $method, string $objectName) => new SignedUrl(
$method,
'https://example.com/'.$objectName,
new \DateTimeImmutable('1 hours')
new \DateTimeImmutable('1 hours'),
$objectName
));
$storedObjectManager = new StoredObjectManager($httpClient, $tempUrlGenerator);
@ -306,7 +307,8 @@ final class StoredObjectManagerTest extends TestCase
->willReturnCallback(fn (string $method, string $objectName) => new SignedUrl(
$method,
'https://example.com/'.$objectName,
new \DateTimeImmutable('1 hours')
new \DateTimeImmutable('1 hours'),
$objectName
));
$manager = new StoredObjectManager($client, $tempUrlGenerator);