From b9286ad3c58c07eb472081616bfaab493b024374 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Fri, 27 Oct 2023 13:43:03 +0300 Subject: [PATCH] UHF-9113: Fix tests --- tests/src/Unit/AzureTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/src/Unit/AzureTest.php b/tests/src/Unit/AzureTest.php index 9520b83..476b6d8 100644 --- a/tests/src/Unit/AzureTest.php +++ b/tests/src/Unit/AzureTest.php @@ -76,7 +76,9 @@ public function testGetExternalUrl() : void { * @dataProvider connectionStringData */ public function testGetClient(array $configuration, array $expected) : void { - $azure = new Azure($configuration); + $fileUrlGenerator = $this->prophesize(FileUrlGeneratorInterface::class); + $logger = $this->prophesize(LoggerInterface::class); + $azure = new Azure($configuration, $logger->reveal(), $fileUrlGenerator->reveal()); $client = $azure->getClient(); $this->assertEquals($expected['primaryUri'], (string) $client->getPsrPrimaryUri()); $this->assertEquals($expected['secondaryUri'], (string) $client->getPsrSecondaryUri());