From 2fc94ead62f9d50526b0f0ac696172f7d419a4e5 Mon Sep 17 00:00:00 2001 From: Guillaume Sainthillier Date: Mon, 20 Jan 2025 10:28:45 +0100 Subject: [PATCH] fix lazy storage factory container types in tests --- tests/Lazy/LazyFactoryTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Lazy/LazyFactoryTest.php b/tests/Lazy/LazyFactoryTest.php index d34e232..ec11bec 100644 --- a/tests/Lazy/LazyFactoryTest.php +++ b/tests/Lazy/LazyFactoryTest.php @@ -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; @@ -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);