/**
  * @param ChannelInterface $channel
  * @param bool $state
  */
 private function assertChannelState(ChannelInterface $channel, $state)
 {
     $this->iWantToBrowseChannels();
     Assert::true($this->indexPage->isSingleResourceOnPage(['name' => $channel->getName(), 'enabled' => $state]), sprintf('Channel with name %s and state %s has not been found.', $channel->getName(), $state));
 }