summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-07-11 12:58:43 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-22 15:20:55 +0200
commita4ba3eadd0d1e04dc4ef5d11dae59c7dc98c4466 (patch)
tree07975fd284ffbeca4a29a49381c1baf0c63e538d /tests/lib/Files
parent2e3114cc28b44468d449838c3b75ed7e4e5decea (diff)
downloadnextcloud-server-a4ba3eadd0d1e04dc4ef5d11dae59c7dc98c4466.tar.gz
nextcloud-server-a4ba3eadd0d1e04dc4ef5d11dae59c7dc98c4466.zip
fix test
Diffstat (limited to 'tests/lib/Files')
-rw-r--r--tests/lib/Files/Node/FolderTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/lib/Files/Node/FolderTest.php b/tests/lib/Files/Node/FolderTest.php
index cae6b4a80c0..eef78e7d428 100644
--- a/tests/lib/Files/Node/FolderTest.php
+++ b/tests/lib/Files/Node/FolderTest.php
@@ -890,7 +890,7 @@ class FolderTest extends \Test\TestCase {
'parent' => $id1
]);
$id3 = $cache->put('bar/foo/folder/asd.txt', [
- 'storage_mtime' => $baseTime,
+ 'storage_mtime' => $baseTime - 100,
'mtime' => $baseTime - 100,
'mimetype' => 'text/plain',
'size' => 3,
@@ -905,6 +905,9 @@ class FolderTest extends \Test\TestCase {
return (int)$node->getId();
}, $nodes);
$this->assertEquals([$id2, $id1, $id3], $ids);// sort folders before files with the same mtime, folders get the lowest child mtime
+ $this->assertEquals($baseTime, $nodes[0]->getMTime());
+ $this->assertEquals($baseTime - 100, $nodes[1]->getMTime());
+ $this->assertEquals($baseTime - 100, $nodes[2]->getMTime());
}
public function testRecentJail() {