3030class RssTest extends TestCase {
3131 public function dataEmpty (): array {
3232 return [
33- ['de ' , 'http://localhost ' , 'description ' , 'Fri, 28 Aug 2015 11:47:14 +0000 ' ],
34- ['en ' , 'http://nextcloud.org ' , 'Desc ' , 'Fri, 28 Aug 2015 11:47:15 +0000 ' ],
33+ ['de ' , 'http://localhost ' , 'title ' , ' description ' , 'Fri, 28 Aug 2015 11:47:14 +0000 ' ],
34+ ['en ' , 'http://nextcloud.org ' , 'The title ' , ' Desc ' , 'Fri, 28 Aug 2015 11:47:15 +0000 ' ],
3535 ];
3636 }
3737
@@ -43,20 +43,21 @@ public function dataEmpty(): array {
4343 * @param string $description
4444 * @param string $timeDate
4545 */
46- public function testEmpty (string $ language , string $ link , string $ description , string $ timeDate ): void {
46+ public function testEmpty (string $ language , string $ link , string $ title , string $ description , string $ timeDate ): void {
4747 $ template = new TemplateResponse ('activity ' , 'rss ' , [
4848 'rssLang ' => $ language ,
4949 'rssLink ' => $ link ,
5050 'rssPubDate ' => $ timeDate ,
5151 'description ' => $ description ,
52+ 'title ' => $ title ,
5253 'activities ' => [],
5354 ], '' );
5455
5556 $ this ->assertSame (
5657 '<?xml version="1.0" encoding="UTF-8"?> '
5758 . "\n" . '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> '
5859 . "\n" . ' <channel> '
59- . "\n" . ' <title>Activity feed </title> '
60+ . "\n" . ' <title> ' . $ title . ' </title> '
6061 . "\n" . ' <language> ' . $ language . '</language> '
6162 . "\n" . ' <link> ' . $ link . '</link> '
6263 . "\n" . ' <description> ' . $ description . '</description> '
@@ -118,6 +119,7 @@ public function testContent(array $activities, string $expected): void {
118119 'rssLink ' => 'http://nextcloud.org ' ,
119120 'rssPubDate ' => 'Fri, 28 Aug 2015 11:47:15 +0000 ' ,
120121 'description ' => 'Desc ' ,
122+ 'title ' => 'Activity feed ' ,
121123 'activities ' => $ activities ,
122124 ], '' );
123125 $ rendered = $ template ->render ();
0 commit comments