Merge pull request #6044 from owncloud/extstorage-ftpunittestfix

Fixed FTP storage unit tests to use the correct class
This commit is contained in:
Vincent Petry 2013-11-25 14:21:34 -08:00
commit 5310a5924b
1 changed files with 4 additions and 4 deletions

View File

@ -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(''));
} }
} }