We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3993256 commit 5d64a01Copy full SHA for 5d64a01
tests/Feature/ExportPostmanWithCacheTest.php
@@ -38,7 +38,12 @@ public function test_cached_export_works()
38
39
$collection = json_decode(Storage::get('postman/'.config('api-postman.filename')), true);
40
41
- $routes = $this->app['router']->getRoutes();
+ $routes = $this->app['router']->getRoutes()->getRoutesByName();
42
+
43
+ // Filter out workbench routes from orchestra/workbench
44
+ $routes = array_filter($routes, function ($route) {
45
+ return strpos($route->uri(), 'workbench') === false;
46
+ });
47
48
$collectionItems = $collection['item'];
49
0 commit comments