mirror of
https://github.com/friendica/friendica
synced 2025-04-20 15:50:12 +00:00
Move Api\Help
This commit is contained in:
parent
9482ef3c34
commit
0757c00d52
3 changed files with 39 additions and 24 deletions
|
@ -33,6 +33,21 @@ use Friendica\Test\Util\AuthenticationDouble;
|
|||
|
||||
class ApiTest extends FixtureTest
|
||||
{
|
||||
/**
|
||||
* Assert that the string is XML and contain the root element.
|
||||
*
|
||||
* @param string $result XML string
|
||||
* @param string $root_element Root element name
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function assertXml(string $result = '', string $root_element = '')
|
||||
{
|
||||
self::assertStringStartsWith('<?xml version="1.0"?>', $result);
|
||||
self::assertStringContainsString('<' . $root_element, $result);
|
||||
// We could probably do more checks here.
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp(); // TODO: Change the autogenerated stub
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue