diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-07-12 16:35:27 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-09-26 11:55:37 +0200 |
commit | f09c46d166f11149a5e778a6d69877a6b871b7a3 (patch) | |
tree | 8a94940792a80bd793022c54370d1942f39d06ae /apps | |
parent | 2df69ec7f4b049807901cff0f650b9debca76965 (diff) | |
download | nextcloud-server-f09c46d166f11149a5e778a6d69877a6b871b7a3.tar.gz nextcloud-server-f09c46d166f11149a5e778a6d69877a6b871b7a3.zip |
Fix some tests
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php | 4 | ||||
-rw-r--r-- | apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php index e2d63868af0..07a55fef63b 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php @@ -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')); diff --git a/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php b/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php index 3a5566e8f70..71bdfb3b2bc 100644 --- a/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php +++ b/apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php @@ -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'], ]; } |