]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix some tests
authorThomas Citharel <tcit@tcit.fr>
Tue, 12 Jul 2016 14:35:27 +0000 (16:35 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 26 Sep 2016 09:55:37 +0000 (11:55 +0200)
apps/dav/tests/unit/Connector/Sabre/FilesPluginTest.php
apps/dav/tests/unit/DAV/SystemPrincipalBackendTest.php

index e2d63868af054c3f6057fd0f296c80e3444c5ce8..07a55fef63b7d72d5681f009636e3f105e8e4c30 100644 (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'));
 
index 3a5566e8f70418397ee95818c190f367d7474c9b..71bdfb3b2bc05e323597431e3f2e4e3c0f1caa4c 100644 (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'],
                ];
        }