Skip to content
Snippets Groups Projects
Commit 22935634 authored by Robin Appelman's avatar Robin Appelman
Browse files

Remove unit tests which causes the filesystem tests to fail

parent fe24aafe
Branches
No related tags found
No related merge requests found
...@@ -48,21 +48,6 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase { ...@@ -48,21 +48,6 @@ class Test_OC_Connector_Sabre_File extends PHPUnit_Framework_TestCase {
$etag = $file->put('test data'); $etag = $file->put('test data');
} }
/**
* Test setting name with setName()
*/
public function testSetName() {
// setup
$file = new OC_Connector_Sabre_File('/test.txt');
$file->fileView = $this->getMock('\OC\Files\View', array('isUpdatable'), array(), '', FALSE);
$file->fileView->expects($this->any())->method('isUpdatable')->withAnyParameters()->will($this->returnValue(true));
$etag = $file->put('test data');
$file->setName('/renamed.txt');
$this->assertTrue($file->fileView->file_exists('/renamed.txt'));
// clean up
$file->delete();
}
/** /**
* Test setting name with setName() with invalid chars * Test setting name with setName() with invalid chars
* @expectedException Sabre_DAV_Exception_BadRequest * @expectedException Sabre_DAV_Exception_BadRequest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment