summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-07-11 14:27:43 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-08-05 16:53:28 +0200
commit676fa459d79199d4d35edc971c663308428eef65 (patch)
tree0533b0b6ae548c89f453298e0fd78e91acb36232 /apps
parent244d4e1399122a6e70120a2ceb7ba25c001b51ba (diff)
downloadnextcloud-server-676fa459d79199d4d35edc971c663308428eef65.tar.gz
nextcloud-server-676fa459d79199d4d35edc971c663308428eef65.zip
Minor fixes
* instanceof \OC\Files\View * fix misplaced paranthesis * remove misplaced character in comment
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_encryption/tests/util.php2
-rw-r--r--apps/files_sharing/tests/api.php6
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_encryption/tests/util.php b/apps/files_encryption/tests/util.php
index 3142b83c5a6..d9fc819f981 100755
--- a/apps/files_encryption/tests/util.php
+++ b/apps/files_encryption/tests/util.php
@@ -249,7 +249,7 @@ class Test_Encryption_Util extends \PHPUnit_Framework_TestCase {
}
/**
-< * Test that data that is read by the crypto stream wrapper
+ * Test that data that is read by the crypto stream wrapper
*/
function testGetFileSize() {
\Test_Encryption_Util::loginHelper(\Test_Encryption_Util::TEST_ENCRYPTION_UTIL_USER1);
diff --git a/apps/files_sharing/tests/api.php b/apps/files_sharing/tests/api.php
index 49571d4c3c2..fd3d25564b6 100644
--- a/apps/files_sharing/tests/api.php
+++ b/apps/files_sharing/tests/api.php
@@ -52,8 +52,10 @@ class Test_Files_Sharing_Api extends Test_Files_Sharing_Base {
}
function tearDown() {
- $this->view->unlink($this->filename);
- $this->view->deleteAll($this->folder);
+ if($this->view instanceof \OC\Files\View) {
+ $this->view->unlink($this->filename);
+ $this->view->deleteAll($this->folder);
+ }
self::$tempStorage = null;