Exemple #1
0
 /**
  * @inheritDoc
  */
 public function addGroup(RouteGroupContract $group) : RouteCollectionContract
 {
     foreach ($group->getRoutes() as $route) {
         $this->addRoute($route);
     }
     return $this;
 }
 function it_can_add_group(RouteGroup $group, Route $route)
 {
     $group->getRoutes()->willReturn([$route]);
     $this->addGroup($group);
     $this->getRoutes()->shouldContain($route);
 }