diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-27 10:34:25 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-27 10:34:25 +0200 |
commit | fcc92a9f43e75ecdb15adb0e948d45eac119306f (patch) | |
tree | c75a3df23cdeeb6a2f5340ebbb1c56b8520b3fda /tests/lib/files/view.php | |
parent | cbc71784c0a5b698f56d2005b4ac7b773d2e003a (diff) | |
download | nextcloud-server-fcc92a9f43e75ecdb15adb0e948d45eac119306f.tar.gz nextcloud-server-fcc92a9f43e75ecdb15adb0e948d45eac119306f.zip |
add searchByMime to new cache api
Diffstat (limited to 'tests/lib/files/view.php')
-rw-r--r-- | tests/lib/files/view.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php index 980c5298fb4..5144fb1caad 100644 --- a/tests/lib/files/view.php +++ b/tests/lib/files/view.php @@ -139,6 +139,9 @@ class View extends \PHPUnit_Framework_TestCase { } $this->assertContains('/anotherstorage/foo.txt', $paths); $this->assertContains('/anotherstorage/foo.png', $paths); + + $this->assertEquals(6, count($rootView->searchByMime('text'))); + $this->assertEquals(3, count($folderView->searchByMime('text'))); } /** |