| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait InteractsWithPages |
||
| 13 | { |
||
| 14 | protected function mockRoute(?Route $route = null): void |
||
| 15 | { |
||
| 16 | Render::share('currentRoute', $route ?? (new Route(new MarkdownPage()))); |
||
| 17 | } |
||
| 18 | |||
| 19 | protected function mockPage(?HydePage $page = null, ?string $currentPage = null): void |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function mockCurrentPage(string $currentPage): void |
||
| 30 |