Skip to content

Commit

Permalink
Update test to use new search page implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 15, 2023
1 parent 38608b8 commit fb79256
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/realtime-compiler/tests/RealtimeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Hyde\RealtimeCompiler\Http\ExceptionHandler;
use Hyde\RealtimeCompiler\Http\HtmlResponse;
use Hyde\RealtimeCompiler\Http\HttpKernel;
use Hyde\Framework\Features\Documentation\DocumentationSearchPage;

define('BASE_PATH', realpath(__DIR__.'/../../../'));

Expand Down Expand Up @@ -164,6 +165,8 @@
});

test('docs/search renders search page', function () {
Filesystem::put('_docs/index.md', '# Hello World!');

mockRoute('docs/search');

$kernel = new HttpKernel();
Expand All @@ -175,6 +178,7 @@

expect($response->body)->toContain('Search the documentation site');

Filesystem::unlink('_docs/index.md');
Filesystem::unlink('_site/docs/search.html');
});

Expand Down

0 comments on commit fb79256

Please sign in to comment.