Antonio Junior's avatar

Can't test BREAD Routes in Voyager

I am trying to create some feature tests using laravel + voyager + phpunit. Everything is setUp and working fine, however during a test I can't access any of the BREAD Routes created by voyager so they can't be tested. When I run php artisan list I can see all the routes and they are working fine in the aplication. However when I print the routes using a for loop I see that no Voyager routes are available:

This is the piece of code that I use to list the routes during a test, just for debbuging:

$routeCollection = \Route::getRoutes();

foreach ($routeCollection as $value) { echo $value->uri; echo "\n"; }

Does anyone have used phpunit and voyager together before? Is this a framework issue or am I doing something wrong?

0 likes
1 reply

Please or to participate in this conversation.