function it_processes_items_even_if_it_is_not_an_array($serializer, $channelManager, ProductInterface $product, ChannelInterface $channel) { $product->getMedia()->willReturn([]); $channelManager->getChannelByCode('mobile')->willReturn($channel); $channel->getLocaleCodes()->willReturn('en-US'); $serializer->serialize(Argument::cetera())->willReturn('those;items;in;csv;format;'); $this->setChannel('mobile'); $this->process($product)->shouldReturn(['entry' => 'those;items;in;csv;format;', 'media' => []]); }