Skip to content

Commit

Permalink
Support Symfony 7 in ProtectedMediaSubscriberTest
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 24, 2024
1 parent 3cca0b8 commit 83c6470
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Tests/Unit/Event/ProtectedMediaSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ public function testOtherRoute(): void
$event = new RequestEvent(
new Kernel('test', true, SuluKernel::CONTEXT_WEBSITE),
$request,
HttpKernelInterface::MASTER_REQUEST
\defined(HttpKernelInterface::class, '::MASTER_REQUEST')
? HttpKernelInterface::MASTER_REQUEST
: HttpKernelInterface::MAIN_REQUEST
);

$this->formatCache->analyzedMediaUrl(Argument::any())
Expand All @@ -108,7 +110,9 @@ public function testImageProxyRoute(): void
$event = new RequestEvent(
new Kernel('test', true, SuluKernel::CONTEXT_WEBSITE),
$request,
HttpKernelInterface::MASTER_REQUEST
\defined(HttpKernelInterface::class, '::MASTER_REQUEST')
? HttpKernelInterface::MASTER_REQUEST
: HttpKernelInterface::MAIN_REQUEST
);

$this->formatCache->analyzedMediaUrl(Argument::any())
Expand Down Expand Up @@ -136,7 +140,9 @@ public function testDownloadRoute(): void
$event = new RequestEvent(
new Kernel('test', true, SuluKernel::CONTEXT_WEBSITE),
$request,
HttpKernelInterface::MASTER_REQUEST
\defined(HttpKernelInterface::class, '::MASTER_REQUEST')
? HttpKernelInterface::MASTER_REQUEST
: HttpKernelInterface::MAIN_REQUEST
);

$this->mockLoadCollectionKey('sulu_form');
Expand Down

0 comments on commit 83c6470

Please sign in to comment.