Skip to content

Commit

Permalink
Clean up test method
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 14, 2023
1 parent 03f7fd8 commit b021766
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ public function test_command_uses_search_pages_from_kernel_when_present()
}));

$this->artisan('build:search')->assertExitCode(0);

$this->assertFileExists(Hyde::path('_site/docs/search.json'));
$this->assertFileExists(Hyde::path('_site/docs/search.html'));

$this->assertSame('{"foo":"bar"}', Filesystem::getContents('_site/docs/search.json'));
$this->assertSame('Foo', Filesystem::getContents('_site/docs/search.html'));

Expand Down

0 comments on commit b021766

Please sign in to comment.