From 195471a133358a709d5d90b96c34115ad6ebe833 Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Wed, 21 Aug 2024 11:14:48 +0100 Subject: [PATCH] Update tests for functionality --- tests/unit/gql/ElementFieldResolverTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/unit/gql/ElementFieldResolverTest.php b/tests/unit/gql/ElementFieldResolverTest.php index 975855d6098..7818c3a2909 100644 --- a/tests/unit/gql/ElementFieldResolverTest.php +++ b/tests/unit/gql/ElementFieldResolverTest.php @@ -450,8 +450,9 @@ public static function assetTransformDataProvider(): array [['width' => 200, 'height' => 200], ['width' => 200, 'height' => 200]], [['width' => 400, 'height' => 200], ['width' => 400, 'height' => 200]], [['width' => 200, 'height' => 500], ['width' => 200, 'height' => 500]], - [['width' => 200, 'height' => 200, 'handle' => 'testHandle'], ['handle' => 'testHandle']], - [['width' => 200, 'height' => 200, 'transform' => 'testHandle2'], ['handle' => 'testHandle2']], + // Overriding named transforms + [['width' => 200, 'height' => 200, 'handle' => 'testHandle'], ['handle' => null, 'width' => 200, 'height' => 200]], + [['width' => 200, 'height' => 200, 'transform' => 'testHandle2'], ['handle' => null, 'width' => 200, 'height' => 200]], ]; } }