From 12b5a531ef07e870020286bd119e03985465f5b9 Mon Sep 17 00:00:00 2001 From: tuutti Date: Fri, 16 Aug 2024 11:36:49 +0300 Subject: [PATCH] UHF-10462: Fixed tests --- tests/src/Unit/AzureTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/src/Unit/AzureTest.php b/tests/src/Unit/AzureTest.php index d9b4e1f..23ccc57 100644 --- a/tests/src/Unit/AzureTest.php +++ b/tests/src/Unit/AzureTest.php @@ -7,6 +7,7 @@ use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\Core\File\FileUrlGeneratorInterface; use Drupal\Core\Logger\LoggerChannelFactory; +use Drupal\Core\Session\AccountInterface; use Drupal\helfi_azure_fs\Flysystem\Azure; use Drupal\Tests\UnitTestCase; use MicrosoftAzure\Storage\Common\Internal\Authentication\SharedAccessSignatureAuthScheme; @@ -15,6 +16,7 @@ use Prophecy\Argument; use Prophecy\PhpUnit\ProphecyTrait; use Psr\Log\LoggerInterface; +use Symfony\Component\HttpFoundation\RequestStack; /** * Tests Azure. @@ -37,7 +39,10 @@ public function testGetExternalUrl() : void { '/styles/test.jpg', '/styles/test).jpg', ); - $loggerFactory = new LoggerChannelFactory(); + $loggerFactory = new LoggerChannelFactory( + $this->prophesize(RequestStack::class)->reveal(), + $this->prophesize(AccountInterface::class)->reveal(), + ); $loggerFactory->addLogger($this->prophesize(LoggerInterface::class)->reveal()); $configuration = [