Exemple #1
0
 /**
  * Fills the request object with the best matched route.
  */
 public function execute()
 {
     $this->request->setModuleName(DEFAULT_MODULE);
     $this->request->setControllerName('index');
     $this->request->setActionName('index');
     $this->fillQuery();
     $query = $this->getQuery();
     if (!empty($query)) {
         $result = $this->match($query);
         $this->updateRequest(reset($result));
     }
 }
 /**
  * Tests if the action name changed after it got set.
  */
 public function testGetActionName()
 {
     $this->request->setActionName('actionNameTest');
     $this->assertEquals('actionNameTest', $this->request->getActionName(), 'Actionname changed.');
 }