Skip to content

Commit f586f10

Browse files
committed
Fix tests
1 parent 2decf76 commit f586f10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ private function processRoutes(AbstractGenerator $generator, array $allowedRoute
305305
*
306306
* @return bool
307307
*/
308-
private function isValidRoute(Route $route)
308+
private function isValidRoute($route)
309309
{
310310
return ! is_callable($route->getAction()['uses']) && ! is_null($route->getAction()['uses']);
311311
}

tests/GenerateDocumentationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function testConsoleCommandDoesNotWorkWithClosureUsingDingo()
9797

9898
$output = $this->artisan('api:generate', [
9999
'--router' => 'dingo',
100-
'--routePrefix' => 'v1',
100+
'--routePrefix' => '*',
101101
]);
102102
$this->assertContains('Skipping route: [GET] closure', $output);
103103
$this->assertContains('Processed route: [GET] test', $output);

0 commit comments

Comments
 (0)