소스 검색

Update GenerateDocumentationTest.php

Shalvah 4 년 전
부모
커밋
e5ee92d085
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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 */