function testDeleteSubscriptions()
 {
     $props = ['{http://calendarserver.org/ns/}source' => new \Sabre\DAV\Xml\Property\Href('http://example.org/cal.ics', false), '{DAV:}displayname' => 'cal', '{http://apple.com/ns/ical/}refreshrate' => 'P1W', '{http://apple.com/ns/ical/}calendar-color' => '#FF00FFFF', '{http://calendarserver.org/ns/}subscribed-strip-todos' => true, '{http://calendarserver.org/ns/}subscribed-strip-attachments' => true];
     $backend = new PDO($this->pdo);
     $backend->createSubscription('principals/user1', 'sub1', $props);
     $newProps = ['{DAV:}displayname' => 'new displayname', '{http://calendarserver.org/ns/}source' => new \Sabre\DAV\Xml\Property\Href('http://example.org/cal2.ics', false)];
     $backend->deleteSubscription(1);
     $subs = $backend->getSubscriptionsForUser('principals/user1');
     $this->assertEquals(0, count($subs));
 }