Skip to content
Snippets Groups Projects
Commit 5310a592 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #6044 from owncloud/extstorage-ftpunittestfix

Fixed FTP storage unit tests to use the correct class
parents d7d7d9b8 944d4156
No related branches found
No related tags found
No related merge requests found
...@@ -34,19 +34,19 @@ class FTP extends Storage { ...@@ -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(''));
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment