Exemplo n.º 1
0
 public function testGetRouteFrontName()
 {
     $routeId = 1;
     $scope = null;
     $this->_object->expects($this->once())->method('getRouteFrontName')->with($routeId, $scope);
     $this->_proxy->getRouteFrontName($routeId, $scope);
 }
Exemplo n.º 2
0
 /**
  * Set route name
  *
  * @param string $route
  * @return $this
  */
 public function setRouteName($route)
 {
     $this->route = $route;
     $module = $this->routeConfig->getRouteFrontName($route);
     if ($module) {
         $this->setModuleName($module);
     }
     return $this;
 }