From 9c100594e1292ebee8ab2c2329199fc71398fad3 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 15 Dec 2023 13:42:25 +0100 Subject: [PATCH] Update test to use new search page implementation --- packages/realtime-compiler/tests/RealtimeCompilerTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/realtime-compiler/tests/RealtimeCompilerTest.php b/packages/realtime-compiler/tests/RealtimeCompilerTest.php index 9f48e9467a9..5c2cec606c3 100644 --- a/packages/realtime-compiler/tests/RealtimeCompilerTest.php +++ b/packages/realtime-compiler/tests/RealtimeCompilerTest.php @@ -164,6 +164,8 @@ }); test('docs/search renders search page', function () { + Filesystem::put('_docs/index.md', '# Hello World!'); + mockRoute('docs/search'); $kernel = new HttpKernel(); @@ -175,6 +177,7 @@ expect($response->body)->toContain('Search the documentation site'); + Filesystem::unlink('_docs/index.md'); Filesystem::unlink('_site/docs/search.html'); });