/** * try to delete a contact * */ public function testDeleteUserAccountContact() { $this->setExpectedException('Addressbook_Exception_AccessDenied'); $userContact = $this->_instance->getContactByUserId(Tinebase_Core::getUser()->getId()); $this->_instance->delete($userContact->getId()); }