diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-25 14:35:57 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:29:00 +0100 |
commit | 25fa0b8acd0c0304fb9b97072f705be1767c4772 (patch) | |
tree | a122abb7d442cbef55ec90f672da1ccb8140db4d /tests | |
parent | ee7ef7780868b6c40745bde8758921e01958af9d (diff) | |
download | nextcloud-server-25fa0b8acd0c0304fb9b97072f705be1767c4772.tar.gz nextcloud-server-25fa0b8acd0c0304fb9b97072f705be1767c4772.zip |
Fix TempManager test errors about passing null to is_dir
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/TempManagerTest.php | 4 |
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(); } |