Fix some tests
This commit is contained in:
parent
2df69ec7f4
commit
f09c46d166
|
@ -471,7 +471,7 @@ class FilesPluginTest extends TestCase {
|
||||||
$node = $this->getMockBuilder('\OCA\DAV\Connector\Sabre\Node')
|
$node = $this->getMockBuilder('\OCA\DAV\Connector\Sabre\Node')
|
||||||
->disableOriginalConstructor()
|
->disableOriginalConstructor()
|
||||||
->getMock();
|
->getMock();
|
||||||
$node->expects($this->once())
|
$node->expects($this->at(0))
|
||||||
->method('getFileInfo')
|
->method('getFileInfo')
|
||||||
->willReturn($fileInfoFolderATestTXT);
|
->willReturn($fileInfoFolderATestTXT);
|
||||||
|
|
||||||
|
@ -545,7 +545,7 @@ class FilesPluginTest extends TestCase {
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
$request
|
$request
|
||||||
->expects($this->once())
|
->expects($this->at(1))
|
||||||
->method('getPath')
|
->method('getPath')
|
||||||
->will($this->returnValue('test/somefile.xml'));
|
->will($this->returnValue('test/somefile.xml'));
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,12 @@ class SystemPrincipalBackendTest extends TestCase {
|
||||||
[[[
|
[[[
|
||||||
'uri' => 'principals/system/system',
|
'uri' => 'principals/system/system',
|
||||||
'{DAV:}displayname' => 'system',
|
'{DAV:}displayname' => 'system',
|
||||||
]], 'principals/system'],
|
],
|
||||||
|
[
|
||||||
|
'uri' => 'principals/system/public',
|
||||||
|
'{DAV:}displayname' => 'public',
|
||||||
|
]
|
||||||
|
], 'principals/system'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue