mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Move API Response methods into an own class to make them mockable
This commit is contained in:
parent
893b8e5df3
commit
319f91301d
22 changed files with 327 additions and 259 deletions
|
@ -25,6 +25,7 @@ use Friendica\App\Router;
|
|||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\Api\ApiResponse;
|
||||
use Friendica\Module\BaseApi;
|
||||
|
||||
/**
|
||||
|
@ -36,12 +37,12 @@ class Accounts extends BaseApi
|
|||
{
|
||||
public static function delete(array $parameters = [])
|
||||
{
|
||||
self::unsupported(Router::DELETE);
|
||||
ApiResponse::unsupported(Router::DELETE);
|
||||
}
|
||||
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
self::unsupported(Router::POST);
|
||||
ApiResponse::unsupported(Router::POST);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue