Example #1
0
 public function tearDown()
 {
     $userId = OCA_mozilla_sync\User::userHashToId($this->userHash);
     if ($userId != false) {
         OCA_mozilla_sync\Storage::deleteStorage($userId);
         OCA_mozilla_sync\User::deleteUser($userId);
     }
     OC_Preferences::deleteUser($this->userName);
     OC_User::deleteUser($this->userName);
 }
Example #2
0
 public function tearDown()
 {
     $userId = OCA_mozilla_sync\User::userHashToId($this->userHash);
     if ($userId != false) {
         OCA_mozilla_sync\Storage::deleteStorage($userId);
         OCA_mozilla_sync\User::deleteUser($userId);
     }
     \OC::$server->getConfig()->deleteAllUserValues($this->userName);
     OC_User::deleteUser($this->userName);
 }