function it_removes_channel($saver, GenericEvent $event, ChannelInterface $channel, LocaleInterface $locale) { $event->getSubject()->willReturn($channel); $saver->saveAll([$locale])->shouldBeCalled(); $channel->getLocales()->willReturn([$locale]); $locale->removeChannel($channel)->shouldBeCalled(); $this->removeChannel($event); }