File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/framework/tests/Feature/Commands Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace Hyde \Framework \Testing \Feature \Commands ;
66
7- use Hyde \Facades \Filesystem ;
87use Hyde \Hyde ;
98use Hyde \Testing \TestCase ;
109
@@ -18,6 +17,8 @@ public function testSitemapIsGeneratedWhenConditionsAreMet()
1817 {
1918 config (['hyde.url ' => 'https://example.com ' ]);
2019
20+ $ this ->cleanUpWhenDone ('_site/sitemap.xml ' );
21+
2122 $ this ->assertFileDoesNotExist (Hyde::path ('_site/sitemap.xml ' ));
2223
2324 $ this ->artisan ('build:sitemap ' )
@@ -27,8 +28,6 @@ public function testSitemapIsGeneratedWhenConditionsAreMet()
2728 ->assertExitCode (0 );
2829
2930 $ this ->assertFileExists (Hyde::path ('_site/sitemap.xml ' ));
30-
31- Filesystem::unlink ('_site/sitemap.xml ' );
3231 }
3332
3433 public function testSitemapIsNotGeneratedWhenConditionsAreNotMet ()
You can’t perform that action at this time.
0 commit comments