We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9ca87 commit f08d839Copy full SHA for f08d839
dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestCartConfigurableItemRepositoryTest.php
@@ -230,11 +230,10 @@ private function getConfigurableProduct(): ProductInterface
230
*/
231
private function getConfigurableOptionData(ProductInterface $configurableProduct): array
232
{
233
- $selectedOption = null;
234
$configOptions = $configurableProduct->getExtensionAttributes()->getConfigurableProductOptions();
235
236
$options = $configOptions[0]->getOptions();
237
- $optionKey = (isset($selectedOption) && isset($options[null])) ? null : 0;
+ $optionKey = isset($options[null]) ? null : 0;
238
239
return [
240
'attribute_id' => $configOptions[0]->getAttributeId(),
0 commit comments