Browse Source

Minor fixes

* instanceof \OC\Files\View
* fix misplaced paranthesis
* remove misplaced character in comment
tags/v8.0.0alpha1
Morris Jobke 10 years ago
parent
commit
676fa459d7

+ 1
- 1
apps/files_encryption/tests/util.php View File

@@ -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);

+ 4
- 2
apps/files_sharing/tests/api.php View File

@@ -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;


+ 1
- 0
lib/private/appframework/utility/controllermethodreflector.php View File

@@ -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()) {

+ 2
- 1
tests/lib/preferences-singleton.php View File

@@ -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` = ?');

+ 1
- 0
tests/lib/preferences.php View File

@@ -6,6 +6,7 @@
* later.
* See the COPYING-README file.
*/

class Test_Preferences_Object extends PHPUnit_Framework_TestCase {
public function testGetUsers()
{

Loading…
Cancel
Save