diff --git a/Test/Unit/Block/PictureFactoryTest.php b/Test/Unit/Block/PictureFactoryTest.php index 8a9345c..e85a0e9 100644 --- a/Test/Unit/Block/PictureFactoryTest.php +++ b/Test/Unit/Block/PictureFactoryTest.php @@ -20,6 +20,8 @@ public function testCreate() $layout->method('createBlock')->willReturn($pictureBlock); $config = $this->getMagentoMock(Config::class); + + // @phpstan-ignore-next-line $pictureFactory = new PictureFactory($layout, $config); $image = $this->getMagentoMock(Image::class); diff --git a/Test/Unit/Image/ImageFactoryTest.php b/Test/Unit/Image/ImageFactoryTest.php index d8d93f7..4d0496d 100644 --- a/Test/Unit/Image/ImageFactoryTest.php +++ b/Test/Unit/Image/ImageFactoryTest.php @@ -1,4 +1,4 @@ -getObjectManager(); $objectManager->method('create')->willReturn(new Image('/tmp/pub/foo/bar.jpg', '/foo/bar.jpg')); + // @phpstan-ignore-next-line $imageFactory = new ImageFactory($objectManager, $urlConvertor); $image = $imageFactory->createFromPath('/tmp/pub/foo/bar.jpg'); @@ -32,6 +33,7 @@ public function testCreateFromUrl() $objectManager = $this->getObjectManager(); $objectManager->method('create')->willReturn(new Image('/tmp/pub/foo/bar.jpg', '/foo/bar.jpg')); + // @phpstan-ignore-next-line $imageFactory = new ImageFactory($objectManager, $urlConvertor); $image = $imageFactory->createFromUrl('/foo/bar.jpg'); diff --git a/Test/Unit/Image/TargetImageFactoryTest.php b/Test/Unit/Image/TargetImageFactoryTest.php index 70b2c24..57ef813 100644 --- a/Test/Unit/Image/TargetImageFactoryTest.php +++ b/Test/Unit/Image/TargetImageFactoryTest.php @@ -19,6 +19,7 @@ public function testGetWithSameTargetDirectory() ->with($this->equalTo('/tmp/pub/example.webp')) ->willReturn(new Image('/tmp/pub/example.webp', '/example.webp')); + // @phpstan-ignore-next-line $targetImageFactory = new TargetImageFactory( $this->getMagentoMock(DirectoryList::class), $this->getMagentoMock(Config::class), @@ -43,6 +44,7 @@ public function testGetWithCacheTargetDirectory() $imageFactory = $this->getMagentoMock(ImageFactory::class); $imageFactory->method('createFromPath')->willReturn(new Image('/tmp/pub/example.webp', '/example.webp')); + // @phpstan-ignore-next-line $targetImageFactory = new TargetImageFactory( $directoryList, $config,