Skip to content

Commit

Permalink
chore: cs-fixer reduce class references and fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Nov 5, 2024
1 parent 3827260 commit 186edae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/Sabre/CalDAV/SharingPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function setup(): void

public function testSimple()
{
self::assertInstanceOf(\Sabre\CalDAV\SharingPlugin::class, $this->server->getPlugin('caldav-sharing'));
self::assertInstanceOf(SharingPlugin::class, $this->server->getPlugin('caldav-sharing'));
self::assertEquals(
'caldav-sharing',
$this->caldavSharingPlugin->getPluginInfo()['name']
Expand Down Expand Up @@ -75,8 +75,8 @@ public function testBeforeGetShareableCalendar()
'{'.Plugin::NS_CALENDARSERVER.'}allowed-sharing-modes',
]);

self::assertInstanceOf(\Sabre\CalDAV\Xml\Property\Invite::class, $props['{'.Plugin::NS_CALENDARSERVER.'}invite']);
self::assertInstanceOf(\Sabre\CalDAV\Xml\Property\AllowedSharingModes::class, $props['{'.Plugin::NS_CALENDARSERVER.'}allowed-sharing-modes']);
self::assertInstanceOf(Xml\Property\Invite::class, $props['{'.Plugin::NS_CALENDARSERVER.'}invite']);
self::assertInstanceOf(Xml\Property\AllowedSharingModes::class, $props['{'.Plugin::NS_CALENDARSERVER.'}allowed-sharing-modes']);
}

public function testBeforeGetSharedCalendar()
Expand All @@ -86,8 +86,9 @@ public function testBeforeGetSharedCalendar()
'{'.Plugin::NS_CALENDARSERVER.'}invite',
]);

self::assertInstanceOf(\Sabre\CalDAV\Xml\Property\Invite::class, $props['{'.Plugin::NS_CALENDARSERVER.'}invite']);
self::assertInstanceOf(Xml\Property\Invite::class, $props['{'.Plugin::NS_CALENDARSERVER.'}invite']);
// self::assertInstanceOf(\Sabre\DAV\Xml\Property\Href::class, $props['{' . Plugin::NS_CALENDARSERVER . '}shared-url']);
}

public function testUpdateResourceType()
{
Expand Down

0 comments on commit 186edae

Please sign in to comment.