$node = $this->getMockBuilder('\OCA\DAV\Connector\Sabre\Node')
->disableOriginalConstructor()
->getMock();
- $node->expects($this->once())
+ $node->expects($this->at(0))
->method('getFileInfo')
->willReturn($fileInfoFolderATestTXT);
->getMock();
$request
- ->expects($this->once())
+ ->expects($this->at(1))
->method('getPath')
->will($this->returnValue('test/somefile.xml'));
[[[
'uri' => 'principals/system/system',
'{DAV:}displayname' => 'system',
- ]], 'principals/system'],
+ ],
+ [
+ 'uri' => 'principals/system/public',
+ '{DAV:}displayname' => 'public',
+ ]
+ ], 'principals/system'],
];
}