fix: Improve routing specificity and add new test.
- Update regular expressions for two routes in `routes/web.php` to match specific numeral values - Add new test for incorrect URL parsing in `tests/Feature/ArticlesTest.php`
This commit is contained in:
parent
66ed0f5c51
commit
d9e2467ba5
2 changed files with 9 additions and 2 deletions
|
@ -58,4 +58,11 @@ class ArticlesTest extends TestCase
|
|||
$response = $this->get('/blog/s/22');
|
||||
$response->assertNotFound();
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function someUrlsDoNotParseCorrectly(): void
|
||||
{
|
||||
$response = $this->get('/blog/feed.js');
|
||||
$response->assertNotFound();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue