From 6d44609dac71f50e4d71a43f0189d2eb1882ad11 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Thu, 14 Dec 2023 18:26:36 +0100 Subject: [PATCH] Update BuildSearchCommandTest.php --- .../tests/Feature/Commands/BuildSearchCommandTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {