Fix tests

This commit is contained in:
Nicolas Le Goff
2013-12-05 14:21:50 +01:00
parent 49744c5e2f
commit b341495c88
122 changed files with 963 additions and 3454 deletions

View File

@@ -101,14 +101,14 @@ class DisplaySettingService
*
* @return mixed
*/
public function getUserNotificationSetting(User $user, $name, $default = false)
public function getUserNotificationSetting(User $user, $name, $default = true)
{
if (false === $user->getNotificationSettings()->containsKey($name)) {
return $default;
}
return $user->getUserNotificationSetting()->get($name)->getValue();
return $user->getNotificationSettings()->get($name)->getValue();
}
/**