Browse Source

Update GenerateDocumentationTest.php

Shalvah 4 năm trước cách đây
mục cha
commit
e5ee92d085
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      tests/GenerateDocumentationTest.php

+ 3 - 1
tests/GenerateDocumentationTest.php

@@ -37,7 +37,8 @@ class GenerateDocumentationTest extends TestCase
 
     public function tearDown(): void
     {
-      Utils::deleteDirectoryAndContents('public/docs', realpath(__DIR__."/../"));
+      Utils::deleteDirectoryAndContents('public/docs');
+      Utils::deleteDirectoryAndContents('resources/docs');
     }
 
     /**
@@ -343,6 +344,7 @@ class GenerateDocumentationTest extends TestCase
         $this->artisan('scribe:generate');
 
         $this->assertFileExists(realpath(__DIR__ . '/../static/docs/index.html'));
+        Utils::deleteDirectoryAndContents('static/docs')
     }
 
     /** @test */