Skip to content

Commit

Permalink
fix lazy storage factory container types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sainthillier authored and maxhelias committed Jan 20, 2025
1 parent 26d3794 commit 2fc94ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Lazy/LazyFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Tests\League\FlysystemBundle\Lazy;

use League\Flysystem\Filesystem;
use League\Flysystem\InMemory\InMemoryFilesystemAdapter;
use League\FlysystemBundle\Lazy\LazyFactory;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -40,8 +41,8 @@ public function testItErrorsWhenServiceIsNotAvailable(): void

public function testItReturnsTheRequestedStorageService(): void
{
$actual = new InMemoryFilesystemAdapter();
$lazy = new InMemoryFilesystemAdapter();
$actual = new Filesystem(new InMemoryFilesystemAdapter());
$lazy = new Filesystem(new InMemoryFilesystemAdapter());

$containerBuilder = new ContainerBuilder();
$containerBuilder->set('source_storage', $actual);
Expand Down

0 comments on commit 2fc94ea

Please sign in to comment.