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

@@ -100,7 +100,7 @@ class patch_320alpha4b implements patchInterface
$entry = new FeedEntry();
$entry->setAuthorEmail($user->getEmail());
$entry->setAuthorName($user->getDisplayName());
$entry->setAuthorName($user->getDisplayName($app['translator']));
$entry->setFeed($feed);
$entry->setPublisher($publishers->first());
$entry->setTitle($row['name']);
@@ -188,11 +188,11 @@ class patch_320alpha4b implements patchInterface
if ( ! array_key_exists($user_key, self::$feeds) || ! isset(self::$feeds[$user_key][$feed_key])) {
if ($homelink == '1')
$title = $user->getDisplayName() . ' - ' . 'homelink Feed';
$title = $user->getDisplayName($app['translator']) . ' - ' . 'homelink Feed';
elseif ($pub_restrict == '1')
$title = $user->getDisplayName() . ' - ' . 'private Feed';
$title = $user->getDisplayName($app['translator']) . ' - ' . 'private Feed';
else
$title = $user->getDisplayName() . ' - ' . 'public Feed';
$title = $user->getDisplayName($app['translator']) . ' - ' . 'public Feed';
$feed = new Feed();
$publisher = new FeedPublisher();