public function testgetUserDateTimePreferences()
 {
     $user = new User();
     $user->retrieve('1');
     $userPreference = new UserPreference($user);
     $result = $userPreference->getUserDateTimePreferences();
     $this->assertTrue(is_array($result));
 }
 /**
  * Alias for setPreference in modules/UserPreferences/UserPreference.php
  *    
  */
 function getUserDateTimePreferences($user = null)
 {
     if (isset($user)) {
         return UserPreference::getUserDateTimePreferences($user);
     } else {
         return UserPreference::getUserDateTimePreferences($this);
     }
 }