mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
Deprecated upload function relocates to a replacement
This commit is contained in:
parent
e381ca6ba0
commit
14ec87e68c
2 changed files with 7 additions and 51 deletions
|
@ -875,6 +875,7 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiStatusesMediap()
|
||||
{
|
||||
/*
|
||||
DI::args()->setArgc(2);
|
||||
|
||||
$_FILES = [
|
||||
|
@ -892,6 +893,7 @@ class ApiTest extends FixtureTest
|
|||
|
||||
$result = api_statuses_mediap('json');
|
||||
self::assertStatus($result['status']);
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -901,10 +903,10 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiStatusesMediapWithoutAuthenticatedUser()
|
||||
{
|
||||
$this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
|
||||
BasicAuth::setCurrentUserID();
|
||||
$_SESSION['authenticated'] = false;
|
||||
api_statuses_mediap('json');
|
||||
// $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
|
||||
// BasicAuth::setCurrentUserID();
|
||||
// $_SESSION['authenticated'] = false;
|
||||
// api_statuses_mediap('json');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue