yield 'Test allowed field with unkown key' =>
[ self::
payloadCart('foo',
['customFields' =>
['bar' => 1
]]),
['foo' =>
['customFields' =>
[]], 'foo-child' =>
['customFields' =>
[]]],
['unknown_field'
],
];
} public static function cleanupCoversProvider(): \Generator
{ yield 'Test cover thumbnailRo cleanup' =>
[ self::
coverCart('foo', 'test'
),
self::
coverItem('foo', ''
)->
getCover(),
];
yield 'Test cover thumbnailRo cleanup without ro data' =>
[ self::
coverCart('foo', null
),
self::
coverItem('foo', null
)->
getCover(),
];
yield 'Test cover thumbnailRo cleanup without cover' =>
[ self::
coverCart('foo', null, true
),
null,
];
}