Skip to content

Commit

Permalink
UHF-10462: Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Aug 16, 2024
1 parent fd6567e commit 12b5a53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/src/Unit/AzureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -15,6 +16,7 @@
use Prophecy\Argument;
use Prophecy\PhpUnit\ProphecyTrait;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\RequestStack;

/**
* Tests Azure.
Expand All @@ -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 = [
Expand Down

0 comments on commit 12b5a53

Please sign in to comment.