use Friendica\Network\HTTPException;
use Friendica\Security\BasicAuth;
use Friendica\Test\FixtureTest;
+use Friendica\Util\Arrays;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Temporal;
use Monolog\Handler\TestHandler;
}
/**
- * Test the BaseApi::walkRecursive() function.
+ * Test the Arrays::walkRecursive() function.
*
* @return void
*/
$array = ['item1'];
self::assertEquals(
$array,
- BaseApi::walkRecursive(
+ Arrays::walkRecursive(
$array,
function () {
// Should we test this with a callback that actually does something?
}
/**
- * Test the BaseApi::walkRecursive() function with an array.
+ * Test the Arrays::walkRecursive() function with an array.
*
* @return void
*/
$array = [['item1'], ['item2']];
self::assertEquals(
$array,
- BaseApi::walkRecursive(
+ Arrays::walkRecursive(
$array,
function () {
// Should we test this with a callback that actually does something?
public function testApiHelpTest()
{
// @todo How to test the new API?
- // $result = api_help_test('json');
+ // $result = \Friendica\Module\Api\Friendica\Help\Test::rawcontent(['extension' => 'json']);
// self::assertEquals(['ok' => 'ok'], $result);
}