Found it
$router = $this->getRouter()->getRoutes();
Works, just needed to add this function to the test
protected function getRouter()
{
return new Router(new Illuminate\Events\Dispatcher);
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community