File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1111
1212trait InteractsWithPages
1313{
14- protected function mockRoute (?Route $ route = null ): void
14+ protected function mockRoute (?Route $ route = null ): static
1515 {
1616 Render::share ('route ' , $ route ?? (new Route (new InMemoryPage ())));
17+
18+ return $ this ;
1719 }
1820
19- protected function mockPage (?HydePage $ page = null , ?string $ currentPage = null ): void
21+ protected function mockPage (?HydePage $ page = null , ?string $ currentPage = null ): static
2022 {
2123 Render::share ('page ' , $ page ?? new InMemoryPage ());
2224 Render::share ('routeKey ' , $ currentPage ?? 'foo ' );
25+
26+ return $ this ;
2327 }
2428
25- protected function mockCurrentPage (string $ currentPage ): void
29+ protected function mockCurrentPage (string $ currentPage ): static
2630 {
2731 Render::share ('routeKey ' , $ currentPage );
2832 Render::share ('route ' , new Route (new InMemoryPage ($ currentPage )));
33+
34+ return $ this ;
2935 }
3036}
You can’t perform that action at this time.
0 commit comments