Commit 676fa459 authored by Morris Jobke's avatar Morris Jobke
Browse files

Minor fixes

* instanceof \OC\Files\View
* fix misplaced paranthesis
* remove misplaced character in comment
parent 244d4e13
......@@ -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);
......
......@@ -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;
......
......@@ -62,6 +62,7 @@ class ControllerMethodReflector {
} else {
$this->types = array_combine($matches['var'], $matches['type']);
}
// get method parameters
foreach ($reflection->getParameters() as $param) {
if($param->isOptional()) {
......
......@@ -61,7 +61,8 @@ class Test_Preferences extends PHPUnit_Framework_TestCase {
sort($expected);
$apps = \OC_Preferences::getApps('Someuser');
sort($apps);
$this->assertEquals($expected, $apps); }
$this->assertEquals($expected, $apps);
}
public function testGetKeys() {
$query = \OC_DB::prepare('SELECT DISTINCT `configkey` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `appid` = ?');
......
......@@ -6,6 +6,7 @@
* later.
* See the COPYING-README file.
*/
class Test_Preferences_Object extends PHPUnit_Framework_TestCase {
public function testGetUsers()
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment