Whitespace cleanup
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
|
||||
class OC_User_IMAP extends OC_User_Backend{
|
||||
private $mailbox;
|
||||
|
||||
|
||||
public function __construct($mailbox) {
|
||||
$this->mailbox=$mailbox;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Check if the password is correct
|
||||
* @param $uid The username
|
||||
|
||||
@@ -11,11 +11,11 @@ class OC_User_SMB extends OC_User_Backend{
|
||||
|
||||
const smbclient='smbclient';
|
||||
const loginError='NT_STATUS_LOGON_FAILURE';
|
||||
|
||||
|
||||
public function __construct($host) {
|
||||
$this->host=$host;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Check if the password is correct
|
||||
* @param $uid The username
|
||||
@@ -36,7 +36,7 @@ class OC_User_SMB extends OC_User_Backend{
|
||||
return $uid;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function userExists($uid) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -11,21 +11,21 @@ class Test_User_FTP extends UnitTestCase{
|
||||
* @var OC_User_IMAP $instance
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
|
||||
private function getConfig() {
|
||||
return include(__DIR__.'/config.php');
|
||||
}
|
||||
|
||||
|
||||
function skip() {
|
||||
$config=$this->getConfig();
|
||||
$this->skipUnless($config['ftp']['run']);
|
||||
}
|
||||
|
||||
|
||||
function setUp() {
|
||||
$config=$this->getConfig();
|
||||
$this->instance=new OC_User_FTP($config['ftp']['host']);
|
||||
}
|
||||
|
||||
|
||||
function testLogin() {
|
||||
$config=$this->getConfig();
|
||||
$this->assertEqual($config['ftp']['user'],$this->instance->checkPassword($config['ftp']['user'],$config['ftp']['password']));
|
||||
|
||||
@@ -19,13 +19,13 @@ class Test_User_Imap extends UnitTestCase{
|
||||
function skip() {
|
||||
$config=$this->getConfig();
|
||||
$this->skipUnless($config['imap']['run']);
|
||||
}
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
$config=$this->getConfig();
|
||||
$this->instance=new OC_User_IMAP($config['imap']['mailbox']);
|
||||
}
|
||||
|
||||
|
||||
function testLogin() {
|
||||
$config=$this->getConfig();
|
||||
$this->assertEqual($config['imap']['user'],$this->instance->checkPassword($config['imap']['user'],$config['imap']['password']));
|
||||
|
||||
@@ -11,21 +11,21 @@ class Test_User_SMB extends UnitTestCase{
|
||||
* @var OC_User_IMAP $instance
|
||||
*/
|
||||
private $instance;
|
||||
|
||||
|
||||
private function getConfig() {
|
||||
return include(__DIR__.'/config.php');
|
||||
}
|
||||
|
||||
|
||||
function skip() {
|
||||
$config=$this->getConfig();
|
||||
$this->skipUnless($config['smb']['run']);
|
||||
}
|
||||
|
||||
|
||||
function setUp() {
|
||||
$config=$this->getConfig();
|
||||
$this->instance=new OC_User_SMB($config['smb']['host']);
|
||||
}
|
||||
|
||||
|
||||
function testLogin() {
|
||||
$config=$this->getConfig();
|
||||
$this->assertEqual($config['smb']['user'],$this->instance->checkPassword($config['smb']['user'],$config['smb']['password']));
|
||||
|
||||
Reference in New Issue
Block a user