mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
fix: create new file with content when creating test files for versioning tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
968ed2caae
commit
981a65f080
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