Skip to content

Commit

Permalink
Fix Routes extractor not providing proper naming for the test argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Sep 21, 2024
1 parent 2e7e27d commit c3d8f81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.0.2

* Fix Routes extractor not providing proper naming for the test argument

## v1.0.1

* Add the `SMOKE_TESTING_ROUTES_METHODS` environment variable to disable the deprecation message
Expand Down
Empty file modified fixture-app/bin/console
100755 → 100644
Empty file.
Empty file modified fixture-app/bin/phpunit
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/RoutesExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static function extractRoutesFromRouter(RouterInterface $router): \Genera

foreach ($methods as $method) {
$routePath = $router->generate($routeName);
yield "$method {$routePath}" => ['method' => $method, 'name' => $routeName, 'path' => $routePath];
yield "$method {$routePath}" => ['httpMethod' => $method, 'routeName' => $routeName, 'routePath' => $routePath];
}
}
}
Expand Down

0 comments on commit c3d8f81

Please sign in to comment.