Browse Source
Fix TempManager test errors about passing null to is_dir
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/29432/head
Côme Chilliet
5 years ago
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with
3 additions and
1 deletions
-
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(); |
|
|
|
} |
|
|
|
|