public function setUp()
 {
     parent::setUp();
     $this->backend = new Backend\Mock('foobar');
     $this->abinfo = $this->backend->getAddressBook('foo');
     $this->ab = new AddressBook($this->backend, $this->abinfo);
 }
 /**
  * Returns the searchProvider for a specific backend.
  *
  * @return \OCP\IAddressBook
  */
 public function getSearchProvider()
 {
     return $this->backend->getSearchProvider($this);
 }
Beispiel #3
0
 public function testDeleteContact()
 {
     $this->assertTrue($this->backend->deleteContact('foo', '123'));
     $this->assertEquals(array(), $this->backend->getContacts('foo'));
 }