Skip to content

Commit

Permalink
add route names
Browse files Browse the repository at this point in the history
  • Loading branch information
IngeniozIT committed Oct 5, 2023
1 parent 7f57b44 commit 6b339a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,11 @@ public function testMatchesRequestBasedOnPath(): void
self::assertSame([], $matchingResult);
self::assertSame(false, $nonMatchingResult);
}

public function testCanBeNamed(): void
{
$route = Route::get('/foo', 'foo', 'route name');

self::assertEquals('route name', $route->name);
}
}

0 comments on commit 6b339a3

Please sign in to comment.