Support the ongoing development of Laravel.io →
Requests Packages Testing

Hello, I'm quite new at testing, and I am struggling to test my workbench packages routes.

The issue is that for some reason my routes in my workbench directory is loaded via service provider register method (I tested, files gets loaded). I can access these routes in my browser, route:list also shows that routes, however when i try to test them with unit test they are not found. During unit test I checked if route files are being loaded/included/required and they are, however if I try to dump routes in one of my tests using var_dump(Route::getRoutes()) they aren't there :/

Maybe someone know where might be a problem?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

luknei luknei Joined 7 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.