function it_provides_channel_choices(ObjectManager $objectManager, ChannelRepositoryInterface $repository, ChannelInterface $mobile, ChannelInterface $ecommerce)
 {
     $repository->findBy(array())->willReturn(array($mobile, $ecommerce));
     $mobile->getCode()->willReturn('mobile');
     $mobile->getLabel()->willReturn('Mobile');
     $ecommerce->getCode()->willReturn('ecommerce');
     $ecommerce->getLabel()->willReturn('Ecommerce');
     $this->getChannelChoices()->shouldReturn(['mobile' => 'Mobile', 'ecommerce' => 'Ecommerce']);
 }
 /**
  * Get channels with criterias
  *
  * @param array $criterias
  *
  * @return ChannelInterface[]
  */
 public function getChannels($criterias = [])
 {
     return $this->channelRepository->findBy($criterias);
 }