diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-04-19 15:03:59 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-04-19 15:06:48 +0200 |
commit | 10be42f5b7b17ca55c242960885a9b50e217af3f (patch) | |
tree | f1fa7359e6419eebe506b27b19e81112cdbbf450 /tests/lib | |
parent | c50dfd725142abdbad93dbcf01fe13193445386a (diff) | |
download | nextcloud-server-10be42f5b7b17ca55c242960885a9b50e217af3f.tar.gz nextcloud-server-10be42f5b7b17ca55c242960885a9b50e217af3f.zip |
Cache: only look for child entires when doing a move operation when moving a folder
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/files/cache/cache.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php index 250842805e5..4051a6e234b 100644 --- a/tests/lib/files/cache/cache.php +++ b/tests/lib/files/cache/cache.php @@ -162,10 +162,11 @@ class Cache extends \PHPUnit_Framework_TestCase { $file4 = 'folder/foo/1'; $file5 = 'folder/foo/2'; $data = array('size' => 100, 'mtime' => 50, 'mimetype' => 'foo/bar'); + $folderData = array('size' => 100, 'mtime' => 50, 'mimetype' => 'httpd/unix-directory'); - $this->cache->put($file1, $data); - $this->cache->put($file2, $data); - $this->cache->put($file3, $data); + $this->cache->put($file1, $folderData); + $this->cache->put($file2, $folderData); + $this->cache->put($file3, $folderData); $this->cache->put($file4, $data); $this->cache->put($file5, $data); |