diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-08 17:19:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 17:19:41 +0300 |
commit | eac54c46608129f847463159bd4c656507c0d018 (patch) | |
tree | 891968a51430bf030133c43b64f52923e5554adc /tests | |
parent | 92258567d4df832f714fb15a6db975152be8220b (diff) | |
parent | 67551f379f3105d117b9d19095dd381450fe40dd (diff) |
Merge pull request #33788 from nextcloud/improve-recent
Improve getting recent files performance
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Node/FolderTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php index ddf6c412dcd..8a604af3846 100644 --- a/tests/lib/Files/Node/FolderTest.php +++ b/tests/lib/Files/Node/FolderTest.php @@ -739,7 +739,7 @@ class FolderTest extends NodeTest { $this->assertEquals($expected, $node->getNonExistingName($name)); } - public function testRecent() { + public function testRecent(): void { $manager = $this->createMock(Manager::class); $folderPath = '/bar/foo'; /** @@ -755,7 +755,7 @@ class FolderTest extends NodeTest { $folderInfo = $this->getMockBuilder(FileInfo::class) ->disableOriginalConstructor()->getMock(); - $baseTime = 1000; + $baseTime = time(); $storage = new Temporary(); $mount = new MountPoint($storage, ''); @@ -823,7 +823,7 @@ class FolderTest extends NodeTest { $folderInfo = $this->getMockBuilder(FileInfo::class) ->disableOriginalConstructor()->getMock(); - $baseTime = 1000; + $baseTime = time(); $storage = new Temporary(); $mount = new MountPoint($storage, ''); @@ -890,7 +890,7 @@ class FolderTest extends NodeTest { $folderInfo = $this->getMockBuilder(FileInfo::class) ->disableOriginalConstructor()->getMock(); - $baseTime = 1000; + $baseTime = time(); $storage = new Temporary(); $jail = new Jail([ 'storage' => $storage, |