chore(tests): Use /dev/shm as a tempdirectory

Should fix tests in phpunit-32bits

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-06-10 22:57:19 +02:00
parent b37044d484
commit d8a6ab54e7
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
2 changed files with 2 additions and 1 deletions

View file

@ -44,7 +44,7 @@ class TempManagerTest extends \Test\TestCase {
$config = $this->createMock(IConfig::class);
$config->method('getSystemValue')
->with('tempdirectory', null)
->willReturn('/tmp');
->willReturn('/dev/shm');
}
$iniGetWrapper = $this->createMock(IniGetWrapper::class);
$manager = new TempManager($logger, $config, $iniGetWrapper);

View file

@ -16,6 +16,7 @@ $CONFIG = [
'writable' => true,
],
],
'tempdirectory' => '/dev/shm',
];
if (is_dir(OC::$SERVERROOT . '/apps2')) {