Ejemplo n.º 1
0
 public function testSingle()
 {
     $this->channelRouter->register(new ChannelType('homepage', 'homepage', 'single'));
     $this->router->expects($this->once())->method('generate')->with($this->equalTo('homepage'));
     $channel = new Channel();
     $channel->setType('homepage');
     $this->channelRouter->getUrl($channel);
 }
Ejemplo n.º 2
0
 public function channelUrl(Channel $channel)
 {
     return $this->router->getUrl($channel, true);
 }