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