diff --git a/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php b/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php index 72a5f591930..2c289a5b4f9 100644 --- a/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php +++ b/packages/framework/tests/Feature/Commands/BuildSearchCommandTest.php @@ -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'));