mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Fix some undefined variable/index notices in tests
This commit is contained in:
parent
28741c8366
commit
6776c4e3f9
5 changed files with 29 additions and 21 deletions
|
@ -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'
|
||||
]
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue