Kaynağa Gözat

Fix directory deletion

Shalvah 4 yıl önce
ebeveyn
işleme
9823738899
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      tests/GenerateDocumentationTest.php

+ 2 - 2
tests/GenerateDocumentationTest.php

@@ -37,8 +37,8 @@ class GenerateDocumentationTest extends TestCase
 
     public function tearDown(): void
     {
-      Utils::deleteDirectoryAndContents('public/docs');
-      Utils::deleteDirectoryAndContents('resources/docs');
+      Utils::deleteDirectoryAndContents('public/docs', realpath(__DIR__."/../"));
+      Utils::deleteDirectoryAndContents('resources/docs', realpath(__DIR__."/../"));
     }
 
     /**