Browse Source

Adjust FakeLockerPluginTest to new Sabre version

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
tags/v19.0.0beta1
Georg Ehrke 4 years ago
parent
commit
80b7ef9b41
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      apps/dav/tests/unit/Connector/Sabre/FakeLockerPluginTest.php

+ 1
- 1
apps/dav/tests/unit/Connector/Sabre/FakeLockerPluginTest.php View 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());
}

Loading…
Cancel
Save