Просмотр исходного кода

Update GenerateDocumentationTest.php

Shalvah 4 лет назад
Родитель
Сommit
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 */