Merge pull request #6044 from owncloud/extstorage-ftpunittestfix
Fixed FTP storage unit tests to use the correct class
This commit is contained in:
commit
5310a5924b
|
@ -34,19 +34,19 @@ class FTP extends Storage {
|
|||
'password' => 'ftp',
|
||||
'root' => '/',
|
||||
'secure' => false );
|
||||
$instance = new OC_Filestorage_FTP($config);
|
||||
$instance = new \OC\Files\Storage\FTP($config);
|
||||
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||
|
||||
$config['secure'] = true;
|
||||
$instance = new OC_Filestorage_FTP($config);
|
||||
$instance = new \OC\Files\Storage\FTP($config);
|
||||
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||
|
||||
$config['secure'] = 'false';
|
||||
$instance = new OC_Filestorage_FTP($config);
|
||||
$instance = new \OC\Files\Storage\FTP($config);
|
||||
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||
|
||||
$config['secure'] = 'true';
|
||||
$instance = new OC_Filestorage_FTP($config);
|
||||
$instance = new \OC\Files\Storage\FTP($config);
|
||||
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue