1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 13:10:24 +02:00

Require unique route names (#2771)

This commit is contained in:
Sami Mazouz
2021-04-10 20:38:25 +01:00
committed by GitHub
parent e376cf2079
commit 548f1321f1
4 changed files with 20 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ class RoutesTest extends TestCase
{
$this->extend(
(new Extend\Routes('api'))
->remove('GET', 'forum.show')
->remove('forum.show')
);
$response = $this->send(
@@ -72,7 +72,7 @@ class RoutesTest extends TestCase
{
$this->extend(
(new Extend\Routes('api'))
->remove('GET', 'forum.show')
->remove('forum.show')
->get('/', 'forum.show', CustomRoute::class)
);