Fix some undefined variable/index notices in tests

This commit is contained in:
Hypolite Petovan 2018-07-01 00:15:11 -04:00
parent 28741c8366
commit 6776c4e3f9
5 changed files with 29 additions and 21 deletions

View file

@ -629,7 +629,7 @@ class ApiTest extends DatabaseTest
*/
public function testApiRssExtra()
{
$user_info = ['url' => 'user_url'];
$user_info = ['url' => 'user_url', 'language' => 'en'];
$result = api_rss_extra($this->app, [], $user_info);
$this->assertEquals($user_info, $result['$user']);
$this->assertEquals($user_info['url'], $result['$rss']['alternate']);
@ -1073,6 +1073,7 @@ class ApiTest extends DatabaseTest
'width' => 666,
'height' => 666,
'tmp_name' => $this->getTempImage(),
'name' => 'spacer.png',
'type' => 'image/png'
]
];