Example #1
0
 public function testHrefGeneratedByUrlHelperRequiresNoRoute()
 {
     $page = new Page\Mvc(array('label' => 'foo', 'action' => 'index', 'controller' => 'index'));
     $page->setAction('view');
     $page->setController('news');
     $this->assertEquals('/news/view', $page->getHref());
 }