Skip to content

Commit 9cda7a1

Browse files
#39729: Cannot return null for non-nullable field
- Refactor callback signatures in unit tests.
1 parent cdd13d6 commit 9cda7a1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/code/Magento/QuoteGraphQl/Test/Unit/Model/Resolver/CustomizableOptionsTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ public function testResolveSkipsEmptyCustomizableOptions(): void
215215
function (
216216
QuoteItem $item,
217217
int $optionId
218-
) use ($expectedOptionData1, $expectedOptionData3) {
218+
) use (
219+
$expectedOptionData1,
220+
$expectedOptionData3
221+
) {
219222
switch ($optionId) {
220223
case 1:
221224
return $expectedOptionData1;
@@ -443,7 +446,10 @@ public function testResolveHandlesDeletedCustomOption(): void
443446
function (
444447
QuoteItem $item,
445448
int $optionId
446-
) use ($validOption1, $validOption2) {
449+
) use (
450+
$validOption1,
451+
$validOption2
452+
) {
447453
switch ($optionId) {
448454
case 1:
449455
return $validOption1;

0 commit comments

Comments
 (0)