From b021766d2f16be15a6c988e8b2b17e45384f2a22 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Thu, 14 Dec 2023 17:17:42 +0100 Subject: [PATCH] Clean up test method --- .../framework/tests/Feature/Commands/BuildSearchCommandTest.php | 2 ++ 1 file changed, 2 insertions(+) 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'));