From 8ea87053f04ab9c0ff58ead24558e0a8005d1d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 5 Sep 2024 16:47:45 +0200 Subject: [PATCH] fix some tests --- .../Tests/Service/StoredObjectManagerTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Tests/Service/StoredObjectManagerTest.php b/src/Bundle/ChillDocStoreBundle/Tests/Service/StoredObjectManagerTest.php index e09a2dc1e..39412b9f7 100644 --- a/src/Bundle/ChillDocStoreBundle/Tests/Service/StoredObjectManagerTest.php +++ b/src/Bundle/ChillDocStoreBundle/Tests/Service/StoredObjectManagerTest.php @@ -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);