From c6eee3aa1f03411eb6fd881338faecdfbd7533b5 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Sat, 23 Nov 2024 20:22:53 +0000 Subject: [PATCH] Fix incorrect test assertion Signed-off-by: Kamil Tekiela --- .../Plugins/Transformations/TransformationPluginsTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/unit/Plugins/Transformations/TransformationPluginsTest.php b/tests/unit/Plugins/Transformations/TransformationPluginsTest.php index c110463ab7..a79fe9b17d 100644 --- a/tests/unit/Plugins/Transformations/TransformationPluginsTest.php +++ b/tests/unit/Plugins/Transformations/TransformationPluginsTest.php @@ -240,7 +240,7 @@ class TransformationPluginsTest extends AbstractTestCase [new Image_JPEG_Link(), 'getInfo', 'Displays a link to download this image.'], [new Image_JPEG_Link(), 'getMIMEType', 'Image'], [new Image_JPEG_Link(), 'getMIMESubtype', 'JPEG'], - [new Image_JPEG_Link(), 'applyTransformationNoWrap', null], + [new Image_JPEG_Link(), 'applyTransformationNoWrap', false], // Test data for PhpMyAdmin\Plugins\Transformations\Output\Image_PNG_Inline plugin [new Image_PNG_Inline(), 'getName', 'Inline'], [ @@ -411,10 +411,6 @@ class TransformationPluginsTest extends AbstractTestCase #[DataProvider('multiDataProvider')] public function testGetMulti(object $object, string $method, mixed $expected, array $args = []): void { - if (! method_exists($object, $method)) { - return; - } - $reflectionMethod = new ReflectionMethod($object, $method); self::assertEquals( $expected,