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 testGetAddressBookFail() { $this->assertNull($this->backend->getAddressBook('bar')); }