Skip to content

Commit 3eafe20

Browse files
committed
Allow mock route to be specified
1 parent fa184e9 commit 3eafe20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TestCase.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ protected function tearDown(): void
6161
}
6262

6363
/** @internal */
64-
protected function mockRoute()
64+
protected function mockRoute(?Route $route = null)
6565
{
66-
view()->share('currentRoute', (new Route(new MarkdownPage())));
66+
view()->share('currentRoute', $route ?? (new Route(new MarkdownPage())));
6767
}
6868

6969
/** @internal */

0 commit comments

Comments
 (0)