Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
16bc04e
Defined strict types for IO contracts
alongosz Jul 8, 2025
9ed4b40
Defined template type for IO HandlerRegistry
alongosz Jul 8, 2025
e2fffbb
Fixed type hints for IOBinarydataHandler implementations
alongosz Jul 8, 2025
04d4062
Fixed type hints for IOMetadataHandler implementations
alongosz Jul 8, 2025
81e7128
Added missing type hints to IO UrlDecorator
alongosz Jul 8, 2025
0a2bfe2
Aligned NotFoundException `$previous` arg type with `\Exception` sign…
alongosz Jul 8, 2025
d06f1cf
Added missing type hints to IO\MimeTypeDetector\FileInfo
alongosz Jul 8, 2025
74d38cd
Fixed strict types in \Ibexa\Bundle\IO\Migration namespace
alongosz Jul 8, 2025
b41dd5d
Added missing type hints and improved code of Imagine VariationPurger
alongosz Jul 9, 2025
01ab1e3
Added missing type hints to IOServiceInterface and aligned related code
alongosz Jul 14, 2025
072d688
Added missing type hints to \Ibexa\Bundle\Core\Imagine\Filter\FilterC…
alongosz Jul 14, 2025
946ac5c
Added missing type hints to \Ibexa\Core\IO\FilePathNormalizer\Flysystem
alongosz Jul 14, 2025
578d353
Fixed strict types of MigrateFilesCommand and improved its code
alongosz Jul 15, 2025
77d86d6
[DI] Added missing type hints to IO Bundle Configuration
alongosz Jul 15, 2025
e1ce13a
Fixed strict types and improved IO Handler Configuration Factories
alongosz Jul 15, 2025
b3b5197
Added missing type hints to StreamFileListener
alongosz Jul 15, 2025
b482e84
Declared strict types and fixed IbexaIOBundle
alongosz Jul 15, 2025
30cb1ad
Declared strict types for MigrationFileListerPass
alongosz Jul 15, 2025
5d230f7
Declared strict types for FileMigratorInterface
alongosz Jul 15, 2025
78100f8
Declared strict types for BinaryStreamResponse
alongosz Jul 15, 2025
66bc4a4
Simplified LegacyStorageImageFileRowReader::getRow implementation
alongosz Jul 21, 2025
1077810
[Tests] Dropped obsolete test replaced by strict types
alongosz Jul 8, 2025
c2e18eb
[Tests] Aligned tests with the changes
alongosz Jul 8, 2025
689887a
[Tests] Aligned VariationPurger unit tests with the changes
alongosz Jul 9, 2025
242e14c
[Tests] Aligned IO\Migration tests with the changes
alongosz Jul 9, 2025
00a2d20
[Tests] Aligned IOServiceTest with the changes
alongosz Jul 9, 2025
c117694
[Tests] Fixed & refactored IORepositoryResolverTest
alongosz Jul 14, 2025
fb8c4c8
[Tests] Fixed & refactored LegacyTest after BinaryFile strict types c…
alongosz Jul 14, 2025
914063e
[Tests] Fixed strict types of IOConfigurationPassTest
alongosz Jul 15, 2025
fbb3bfc
[Tests] Improved quality of LegacyDFSClusterTest
alongosz Jul 15, 2025
be319fb
[Tests] Fixed ConfigurationFactory test cases
alongosz Jul 15, 2025
ce33ab0
[Tests] Improved \Ibexa\Tests\Bundle\IO\DependencyInjection\Configura…
alongosz Jul 15, 2025
c824970
[PHPStan] Removed resolved issues from the baseline
alongosz Jul 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Tests] Improved \Ibexa\Tests\Bundle\IO\DependencyInjection\Configura…
…tionFactory\BaseFlysystemTestCase
  • Loading branch information
alongosz committed Aug 6, 2025
commit ce33ab0ae4b087065bd31bd46478fe8c63c67ff0
21 changes: 20 additions & 1 deletion tests/bundle/IO/EventListener/StreamFileListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
declare(strict_types=1);

namespace Ibexa\Tests\Bundle\IO\EventListener;

Expand All @@ -19,7 +20,10 @@
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;

class StreamFileListenerTest extends TestCase
/**
* @covers \Ibexa\Bundle\IO\EventListener\StreamFileListener
*/
final class StreamFileListenerTest extends TestCase
{
private StreamFileListener $eventListener;

Expand All @@ -36,6 +40,9 @@ protected function setUp(): void
$this->eventListener = new StreamFileListener($this->ioServiceMock, $this->ioConfigResolverMock);
}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\Exception
*/
public function testDoesNotRespondToNonIoUri(): void
{
$request = $this->createRequest('/Not-an-image');
Expand All @@ -51,6 +58,9 @@ public function testDoesNotRespondToNonIoUri(): void
self::assertNull($event->getResponse());
}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\Exception
*/
public function testDoesNotRespondToNoIoRequest(): void
{
$request = $this->createRequest('/Not-an-image', 'bar.fr');
Expand All @@ -66,6 +76,9 @@ public function testDoesNotRespondToNoIoRequest(): void
self::assertNull($event->getResponse());
}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\Exception
*/
public function testRespondsToIoUri(): void
{
$uri = $binaryFileUri = '/var/test/storage/images/image.png';
Expand All @@ -75,6 +88,9 @@ public function testRespondsToIoUri(): void
$this->assertOnKernelRequestResponse($request, $urlPrefix, $binaryFileUri);
}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\Exception
*/
public function testRespondsToIoRequest(): void
{
$uri = '/var/test/storage/images/image.png';
Expand Down Expand Up @@ -109,6 +125,9 @@ protected function createEvent(Request $request): RequestEvent
);
}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\Exception
*/
private function assertOnKernelRequestResponse(Request $request, string $urlPrefix, string $binaryFileUri): void
{
$this->configureIoUrlPrefix($urlPrefix);
Expand Down