mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 18:11:41 -04:00
Merge pull request #53650 from nextcloud/version-test-new-file
This commit is contained in:
commit
6bdde907ff
1 changed files with 2 additions and 2 deletions
|
|
@ -49,10 +49,10 @@ class StorageTest extends TestCase {
|
|||
protected function createPastFile(string $path, int $mtime): void {
|
||||
try {
|
||||
$file = $this->userFolder->get($path);
|
||||
$file->putContent((string)$mtime);
|
||||
} catch (NotFoundException $e) {
|
||||
$file = $this->userFolder->newFile($path);
|
||||
$file = $this->userFolder->newFile($path, (string)$mtime);
|
||||
}
|
||||
$file->putContent((string)$mtime);
|
||||
$file->touch($mtime);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue