summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-05-19 15:04:41 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2013-05-19 15:04:41 -0400
commitfc5bce1f76a3a67a4ac9095d15441e363dfd03d1 (patch)
tree4681518425a816bf6637fff3156c139f55ef54c9 /tests
parente9b71eed691050e23d78910abdd8bf313f2f83cb (diff)
downloadnextcloud-server-fc5bce1f76a3a67a4ac9095d15441e363dfd03d1.tar.gz
nextcloud-server-fc5bce1f76a3a67a4ac9095d15441e363dfd03d1.zip
Fix undefined variable for copying empty folders
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/view.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php
index 554bc7291ad..a51d99e793d 100644
--- a/tests/lib/files/view.php
+++ b/tests/lib/files/view.php
@@ -235,9 +235,12 @@ class View extends \PHPUnit_Framework_TestCase {
\OC\Files\Filesystem::mount($storage2, array(), '/substorage');
$rootView = new \OC\Files\View('');
+ $rootView->mkdir('substorage/emptyfolder');
$rootView->copy('substorage', 'anotherfolder');
$this->assertTrue($rootView->is_dir('/anotherfolder'));
$this->assertTrue($rootView->is_dir('/substorage'));
+ $this->assertTrue($rootView->is_dir('/anotherfolder/emptyfolder'));
+ $this->assertTrue($rootView->is_dir('/substorage/emptyfolder'));
$this->assertTrue($rootView->file_exists('/anotherfolder/foo.txt'));
$this->assertTrue($rootView->file_exists('/anotherfolder/foo.png'));
$this->assertTrue($rootView->file_exists('/anotherfolder/folder/bar.txt'));