Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Unit/Backends/DAV/FolderTest.php
<?php | <?php | ||||
namespace Tests\Unit\Backends\DAV; | namespace Tests\Unit\Backends\DAV; | ||||
use App\Backends\DAV\Folder; | use App\Backends\DAV\Folder; | ||||
use Tests\TestCase; | use Tests\TestCase; | ||||
class FolderTest extends TestCase | class FolderTest extends TestCase | ||||
{ | { | ||||
/** | /** | ||||
* Test Folder::fromDomElement() | * Test Folder::fromDomElement() | ||||
*/ | */ | ||||
public function testFromDomElement(): void | public function testFromDomElement(): void | ||||
{ | { | ||||
$xml = <<<XML | $xml = <<<XML | ||||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<d:multistatus xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/" xmlns:c="urn:ietf:params:xml:ns:caldav" xmlns:a="http://apple.com/ns/ical/" xmlns:k="Kolab:"> | <d:multistatus xmlns:d="DAV:" | ||||
xmlns:cs="http://calendarserver.org/ns/" | |||||
xmlns:c="urn:ietf:params:xml:ns:caldav" | |||||
xmlns:a="http://apple.com/ns/ical/" | |||||
xmlns:k="Kolab:"> | |||||
<d:response> | <d:response> | ||||
<d:href>/dav/calendars/user/alec@aphy.io/Default/</d:href> | <d:href>/dav/calendars/user/alec@aphy.io/Default/</d:href> | ||||
<d:propstat> | <d:propstat> | ||||
<d:prop> | <d:prop> | ||||
<d:resourcetype> | <d:resourcetype> | ||||
<d:collection/> | <d:collection/> | ||||
<c:calendar/> | <c:calendar/> | ||||
</d:resourcetype> | </d:resourcetype> | ||||
Show All 28 Lines |