diff --git a/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php b/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php index 2c289a5b4f9..696cb5d503b 100644 --- a/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php +++ b/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php @@ -108,8 +108,9 @@ public function test_search_files_can_be_generated_for_custom_site_and_nested_do public function test_command_uses_search_pages_from_kernel_when_present() { - Hyde::pages()->addPage(tap(GeneratesDocumentationSearchIndex::makePage(), function (InMemoryPage $page): void { + Hyde::pages()->addPage(tap(new InMemoryPage('search.json'), function (InMemoryPage $page): void { $page->macro('compile', fn () => '{"foo":"bar"}'); + $page->macro('getOutputPath', fn () => 'docs/search.json'); })); Hyde::pages()->addPage(tap(new InMemoryPage('docs/search'), function (InMemoryPage $page): void {