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?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community