Minor fixes
* instanceof \OC\Files\View * fix misplaced paranthesis * remove misplaced character in comment
This commit is contained in:
parent
244d4e1399
commit
676fa459d7
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue