We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b682739 commit 2d29ed8Copy full SHA for 2d29ed8
packages/framework/tests/Feature/Commands/BuildSitemapCommandTest.php
@@ -26,4 +26,14 @@ public function testSitemapIsGeneratedWhenConditionsAreMet()
26
27
Filesystem::unlink('_site/sitemap.xml');
28
}
29
+
30
+ public function testSitemapIsNotGeneratedWhenConditionsAreNotMet()
31
+ {
32
+ config(['hyde.url' => '']);
33
34
+ $this->assertFileDoesNotExist(Hyde::path('_site/sitemap.xml'));
35
36
+ $this->artisan('build:sitemap')->assertExitCode(0);
37
38
+ }
39
0 commit comments