Fix some tests

This commit is contained in:
Thomas Citharel 2016-07-12 16:35:27 +02:00 committed by Lukas Reschke
parent 2df69ec7f4
commit f09c46d166
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 8 additions and 3 deletions

View File

@ -471,7 +471,7 @@ class FilesPluginTest extends TestCase {
$node = $this->getMockBuilder('\OCA\DAV\Connector\Sabre\Node')
->disableOriginalConstructor()
->getMock();
$node->expects($this->once())
$node->expects($this->at(0))
->method('getFileInfo')
->willReturn($fileInfoFolderATestTXT);
@ -545,7 +545,7 @@ class FilesPluginTest extends TestCase {
->getMock();
$request
->expects($this->once())
->expects($this->at(1))
->method('getPath')
->will($this->returnValue('test/somefile.xml'));

View File

@ -45,7 +45,12 @@ class SystemPrincipalBackendTest extends TestCase {
[[[
'uri' => 'principals/system/system',
'{DAV:}displayname' => 'system',
]], 'principals/system'],
],
[
'uri' => 'principals/system/public',
'{DAV:}displayname' => 'public',
]
], 'principals/system'],
];
}