mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Transform ApiResponse::createXML() into dynamic method
This commit is contained in:
parent
319f91301d
commit
f28e64299e
3 changed files with 19 additions and 8 deletions
|
@ -1114,7 +1114,7 @@ class ApiTest extends FixtureTest
|
|||
'xmlns:georss="http://www.georss.org/georss">' . "\n" .
|
||||
' <data>some_data</data>' . "\n" .
|
||||
'</root_element>' . "\n",
|
||||
ApiResponse::createXML(['data' => ['some_data']], 'root_element')
|
||||
DI::apiResponse()->createXML(['data' => ['some_data']], 'root_element')
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -1130,7 +1130,7 @@ class ApiTest extends FixtureTest
|
|||
'<ok>' . "\n" .
|
||||
' <data>some_data</data>' . "\n" .
|
||||
'</ok>' . "\n",
|
||||
ApiResponse::createXML(['data' => ['some_data']], 'ok')
|
||||
DI::apiResponse()->createXML(['data' => ['some_data']], 'ok')
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue