public function setUp()
 {
     \Sabre\VObject\Component::$classMap['VCARD'] = '\\OCA\\Contacts\\VObject\\VCard';
     $this->backend = new Backend\Mock('foobar');
     $this->abinfo = $this->backend->getAddressBook('foo');
     $this->ab = new AddressBook($this->backend, $this->abinfo);
 }
 public function setUp()
 {
     $this->backend = new Backend\Mock('foobar');
     $this->abinfo = $this->backend->getAddressBook('foo');
     $this->ab = new AddressBook($this->backend, $this->abinfo);
     $this->contact = $this->ab->getChild('123');
 }
 function testDeleteContact()
 {
     $this->assertTrue($this->backend->deleteContact('foo', '123'));
     $this->assertEquals(array(), $this->backend->getContacts('foo'));
 }