Make all tests extend the new \Test\TestCase
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
* See the COPYING-README file.
|
* See the COPYING-README file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Test_User_FTP extends PHPUnit_Framework_TestCase{
|
class Test_User_FTP extends \Test\TestCase {
|
||||||
/**
|
/**
|
||||||
* @var OC_User_IMAP $instance
|
* @var OC_User_IMAP $instance
|
||||||
*/
|
*/
|
||||||
@@ -21,7 +21,8 @@ class Test_User_FTP extends PHPUnit_Framework_TestCase{
|
|||||||
$this->skipUnless($config['ftp']['run']);
|
$this->skipUnless($config['ftp']['run']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setUp() {
|
protected function setUp() {
|
||||||
|
parent::setUp();
|
||||||
$config=$this->getConfig();
|
$config=$this->getConfig();
|
||||||
$this->instance=new OC_User_FTP($config['ftp']['host']);
|
$this->instance=new OC_User_FTP($config['ftp']['host']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* See the COPYING-README file.
|
* See the COPYING-README file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Test_User_Imap extends PHPUnit_Framework_TestCase{
|
class Test_User_Imap extends \Test\TestCase {
|
||||||
/**
|
/**
|
||||||
* @var OC_User_IMAP $instance
|
* @var OC_User_IMAP $instance
|
||||||
*/
|
*/
|
||||||
@@ -21,7 +21,9 @@ class Test_User_Imap extends PHPUnit_Framework_TestCase{
|
|||||||
$this->skipUnless($config['imap']['run']);
|
$this->skipUnless($config['imap']['run']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setUp() {
|
protected function setUp() {
|
||||||
|
parent::setUp();
|
||||||
|
|
||||||
$config=$this->getConfig();
|
$config=$this->getConfig();
|
||||||
$this->instance=new OC_User_IMAP($config['imap']['mailbox']);
|
$this->instance=new OC_User_IMAP($config['imap']['mailbox']);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* See the COPYING-README file.
|
* See the COPYING-README file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Test_User_SMB extends PHPUnit_Framework_TestCase{
|
class Test_User_SMB extends \Test\TestCase {
|
||||||
/**
|
/**
|
||||||
* @var OC_User_IMAP $instance
|
* @var OC_User_IMAP $instance
|
||||||
*/
|
*/
|
||||||
@@ -21,7 +21,9 @@ class Test_User_SMB extends PHPUnit_Framework_TestCase{
|
|||||||
$this->skipUnless($config['smb']['run']);
|
$this->skipUnless($config['smb']['run']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setUp() {
|
protected function setUp() {
|
||||||
|
parent::setUp();
|
||||||
|
|
||||||
$config=$this->getConfig();
|
$config=$this->getConfig();
|
||||||
$this->instance=new OC_User_SMB($config['smb']['host']);
|
$this->instance=new OC_User_SMB($config['smb']['host']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user