]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjust FakeLockerPluginTest to new Sabre version
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 10 Mar 2020 14:01:08 +0000 (15:01 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 27 Mar 2020 11:53:44 +0000 (12:53 +0100)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/dav/tests/unit/Connector/Sabre/FakeLockerPluginTest.php

index 473c0164d06a8b8dc72cc6ed786051838e50ebe9..d24b4dfe962ad5f5cc08cd33e541b45cef193f4f 100644 (file)
@@ -172,7 +172,7 @@ class FakeLockerPluginTest extends TestCase {
 
                $this->assertSame(false, $this->fakeLockerPlugin->fakeLockProvider($request, $response));
 
-               $expectedXml = '<?xml version="1.0" encoding="utf-8"?><d:prop xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:lockdiscovery><d:activelock><d:lockscope><d:exclusive/></d:lockscope><d:locktype><d:write/></d:locktype><d:lockroot><d:href>MyPath</d:href></d:lockroot><d:depth>infinity</d:depth><d:timeout>Second-1800</d:timeout><d:locktoken><d:href>opaquelocktoken:fe4f7f2437b151fbcb4e9f5c8118c6b1</d:href></d:locktoken><d:owner/></d:activelock></d:lockdiscovery></d:prop>';
+               $expectedXml = '<?xml version="1.0" encoding="utf-8"?><d:prop xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:lockdiscovery><d:activelock><d:lockscope><d:exclusive/></d:lockscope><d:locktype><d:write/></d:locktype><d:lockroot><d:href>MyPath</d:href></d:lockroot><d:depth>infinity</d:depth><d:timeout>Second-1800</d:timeout><d:locktoken><d:href>opaquelocktoken:fe4f7f2437b151fbcb4e9f5c8118c6b1</d:href></d:locktoken></d:activelock></d:lockdiscovery></d:prop>';
 
                $this->assertXmlStringEqualsXmlString($expectedXml, $response->getBody());
        }