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() {
|
function testGetFileSize() {
|
||||||
\Test_Encryption_Util::loginHelper(\Test_Encryption_Util::TEST_ENCRYPTION_UTIL_USER1);
|
\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() {
|
function tearDown() {
|
||||||
|
if($this->view instanceof \OC\Files\View) {
|
||||||
$this->view->unlink($this->filename);
|
$this->view->unlink($this->filename);
|
||||||
$this->view->deleteAll($this->folder);
|
$this->view->deleteAll($this->folder);
|
||||||
|
}
|
||||||
|
|
||||||
self::$tempStorage = null;
|
self::$tempStorage = null;
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ class ControllerMethodReflector {
|
||||||
} else {
|
} else {
|
||||||
$this->types = array_combine($matches['var'], $matches['type']);
|
$this->types = array_combine($matches['var'], $matches['type']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// get method parameters
|
// get method parameters
|
||||||
foreach ($reflection->getParameters() as $param) {
|
foreach ($reflection->getParameters() as $param) {
|
||||||
if($param->isOptional()) {
|
if($param->isOptional()) {
|
||||||
|
|
|
@ -61,7 +61,8 @@ class Test_Preferences extends PHPUnit_Framework_TestCase {
|
||||||
sort($expected);
|
sort($expected);
|
||||||
$apps = \OC_Preferences::getApps('Someuser');
|
$apps = \OC_Preferences::getApps('Someuser');
|
||||||
sort($apps);
|
sort($apps);
|
||||||
$this->assertEquals($expected, $apps); }
|
$this->assertEquals($expected, $apps);
|
||||||
|
}
|
||||||
|
|
||||||
public function testGetKeys() {
|
public function testGetKeys() {
|
||||||
$query = \OC_DB::prepare('SELECT DISTINCT `configkey` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `appid` = ?');
|
$query = \OC_DB::prepare('SELECT DISTINCT `configkey` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `appid` = ?');
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
* later.
|
* later.
|
||||||
* See the COPYING-README file.
|
* See the COPYING-README file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Test_Preferences_Object extends PHPUnit_Framework_TestCase {
|
class Test_Preferences_Object extends PHPUnit_Framework_TestCase {
|
||||||
public function testGetUsers()
|
public function testGetUsers()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue