Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /**
  * Returns the searchProvider for a specific backend.
  *
  * @return \OCP\IAddressBook
  */
 public function getSearchProvider()
 {
     return $this->backend->getSearchProvider($this);
 }
Exemplo n.º 3
0
 public function testDeleteContact()
 {
     $this->assertTrue($this->backend->deleteContact('foo', '123'));
     $this->assertEquals(array(), $this->backend->getContacts('foo'));
 }