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',
|
'password' => 'ftp',
|
||||||
'root' => '/',
|
'root' => '/',
|
||||||
'secure' => false );
|
'secure' => false );
|
||||||
$instance = new OC_Filestorage_FTP($config);
|
$instance = new \OC\Files\Storage\FTP($config);
|
||||||
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
|
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||||
|
|
||||||
$config['secure'] = true;
|
$config['secure'] = true;
|
||||||
$instance = new OC_Filestorage_FTP($config);
|
$instance = new \OC\Files\Storage\FTP($config);
|
||||||
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
|
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||||
|
|
||||||
$config['secure'] = 'false';
|
$config['secure'] = 'false';
|
||||||
$instance = new OC_Filestorage_FTP($config);
|
$instance = new \OC\Files\Storage\FTP($config);
|
||||||
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
|
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||||
|
|
||||||
$config['secure'] = 'true';
|
$config['secure'] = 'true';
|
||||||
$instance = new OC_Filestorage_FTP($config);
|
$instance = new \OC\Files\Storage\FTP($config);
|
||||||
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
|
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue