summaryrefslogtreecommitdiffstats
path: root/tests/lib/TempManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/TempManagerTest.php')
-rw-r--r--tests/lib/TempManagerTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/TempManagerTest.php b/tests/lib/TempManagerTest.php
index 5df0e68d4fa..fd4ef8e2324 100644
--- a/tests/lib/TempManagerTest.php
+++ b/tests/lib/TempManagerTest.php
@@ -26,7 +26,9 @@ class TempManagerTest extends \Test\TestCase {
}
protected function tearDown(): void {
- \OC_Helper::rmdirr($this->baseDir);
+ if ($this->baseDir !== null) {
+ \OC_Helper::rmdirr($this->baseDir);
+ }
$this->baseDir = null;
parent::tearDown();
}