瀏覽代碼

Fix directory deletion

Shalvah 4 年之前
父節點
當前提交
9823738899
共有 1 個文件被更改,包括 2 次插入2 次删除
  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__."/../"));
     }
 
     /**