mirror of
https://github.com/friendica/friendica
synced 2025-04-28 14:24:23 +02:00
Introduce FixtureTest::useHttpMethod for manually overwrite the HTTP Method argument
This commit is contained in:
parent
4e67bfed8d
commit
5e85939502
36 changed files with 175 additions and 82 deletions
|
@ -14,7 +14,9 @@ class UpdateProfileTest extends ApiTest
|
|||
*/
|
||||
public function testApiAccountUpdateProfile()
|
||||
{
|
||||
$response = (new UpdateProfile(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::POST], ['extension' => 'json']))
|
||||
$this->useHttpMethod(Router::POST);
|
||||
|
||||
$response = (new UpdateProfile(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']))
|
||||
->run([
|
||||
'name' => 'new_name',
|
||||
'description' => 'new_description'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue