public function testreloadPreferences() { $user = new User(); $user->retrieve('1'); $userPreference = new UserPreference($user); $result = $userPreference->reloadPreferences(); $this->assertEquals(false, $result); }
/** * Unconditionally reloads user preferences from the DB and updates the session * @param string $category name of the category to retreive, defaults to global scope * @return bool successful? */ public function reloadPreferences($category = 'global') { return $this->_userPreferenceFocus->reloadPreferences($category = 'global'); }