Skip to content

Commit

Permalink
Simplify the test for enabling API routes (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodevs authored Jan 4, 2025
1 parent 536879b commit 3e4fffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Feature/Generators/RouteGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function output_uncomments_api_route_line_in_bootstrap_if_commented(): vo
{
$this->filesystem->expects('get')
->with('bootstrap/app.php')
->andReturn("// api: \nweb: __DIR__.'/../routes/web.php',");
->andReturn('// api: ');

$this->filesystem->shouldReceive('replaceInFile')
->with('// api: ', 'api: ', 'bootstrap/app.php')
Expand Down

0 comments on commit 3e4fffc

Please sign in to comment.