Migrate API\StatusNetVersion
This commit is contained in:
parent
829c43ba3b
commit
de1e839a2b
|
@ -2792,18 +2792,6 @@ class ApiTest extends FixtureTest
|
|||
self::assertEquals(30, $result['config']['site']['shorturllength']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statusnet_version() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusnetVersion()
|
||||
{
|
||||
// @todo How to test the new API?
|
||||
// $result = api_statusnet_version('json');
|
||||
// self::assertEquals('0.9.7', $result['version']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_direct_messages_new() function.
|
||||
*
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial;
|
||||
|
||||
use Friendica\Module\Api\GNUSocial\GNUSocial\Version;
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
use Friendica\Test\Util\ApiResponseDouble;
|
||||
|
||||
class VersionTest extends ApiTest
|
||||
{
|
||||
public function test()
|
||||
{
|
||||
Version::rawContent(['extension' => 'json']);
|
||||
|
||||
$result = json_decode(ApiResponseDouble::getOutput());
|
||||
|
||||
self::assertEquals('0.9.7', $result);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user