Fix TempManager test errors about passing null to is_dir

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2021-10-25 14:35:57 +02:00
parent ee7ef77808
commit 25fa0b8acd
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -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();
}