Skip to content

Commit 2fc94ea

Browse files
guillaume-sainthilliermaxhelias
authored andcommitted
fix lazy storage factory container types in tests
1 parent 26d3794 commit 2fc94ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Lazy/LazyFactoryTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Tests\League\FlysystemBundle\Lazy;
1313

14+
use League\Flysystem\Filesystem;
1415
use League\Flysystem\InMemory\InMemoryFilesystemAdapter;
1516
use League\FlysystemBundle\Lazy\LazyFactory;
1617
use PHPUnit\Framework\TestCase;
@@ -40,8 +41,8 @@ public function testItErrorsWhenServiceIsNotAvailable(): void
4041

4142
public function testItReturnsTheRequestedStorageService(): void
4243
{
43-
$actual = new InMemoryFilesystemAdapter();
44-
$lazy = new InMemoryFilesystemAdapter();
44+
$actual = new Filesystem(new InMemoryFilesystemAdapter());
45+
$lazy = new Filesystem(new InMemoryFilesystemAdapter());
4546

4647
$containerBuilder = new ContainerBuilder();
4748
$containerBuilder->set('source_storage', $actual);

0 commit comments

Comments
 (0)