Introduce FixtureTest::useHttpMethod for manually overwrite the HTTP Method argument
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user