summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-11-23 00:17:18 +0100
committerRobin Appelman <icewind@owncloud.com>2012-11-23 00:17:18 +0100
commitad706229f5dbc6382ade61493e9f100a2dc07293 (patch)
tree17d6073c33df7491c6e0d8b05bfc1939f1db2e1f /tests
parent8ce5e0d30d874bf59a81aa01202a497ea4cb8492 (diff)
downloadnextcloud-server-ad706229f5dbc6382ade61493e9f100a2dc07293.tar.gz
nextcloud-server-ad706229f5dbc6382ade61493e9f100a2dc07293.zip
explicitly sort files when using getFolderContents
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/view.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index a173094b1cc..ecfc803dc23 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -55,20 +55,20 @@ class View extends \PHPUnit_Framework_TestCase {
$folderData = $rootView->getDirectoryContent('/');
/**
* expected entries:
- * folder
* foo.png
* foo.txt
+ * folder
* substorage
*/
$this->assertEquals(4, count($folderData));
- $this->assertEquals('folder', $folderData[0]['name']);
- $this->assertEquals('foo.png', $folderData[1]['name']);
- $this->assertEquals('foo.txt', $folderData[2]['name']);
+ $this->assertEquals('foo.png', $folderData[0]['name']);
+ $this->assertEquals('foo.txt', $folderData[1]['name']);
+ $this->assertEquals('folder', $folderData[2]['name']);
$this->assertEquals('substorage', $folderData[3]['name']);
- $this->assertEquals($storageSize + $textSize, $folderData[0]['size']);
- $this->assertEquals($imageSize, $folderData[1]['size']);
- $this->assertEquals($textSize, $folderData[2]['size']);
+ $this->assertEquals($imageSize, $folderData[0]['size']);
+ $this->assertEquals($textSize, $folderData[1]['size']);
+ $this->assertEquals($storageSize + $textSize, $folderData[2]['size']);
$this->assertEquals($storageSize, $folderData[3]['size']);
$folderView = new \OC\Files\View('/folder');