<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Test\src\Module;
+use Friendica\Module\BaseApi;
use Friendica\Test\src\Module\Api\ApiTest;
class BaseApiTest extends ApiTest
);
*/
}
+
+ /**
+ * Test the BaseApi::getCurrentUserID() function.
+ *
+ * @return void
+ */
+ public function testApiUser()
+ {
+ self::assertEquals(parent::SELF_USER['id'], BaseApi::getCurrentUserID());
+ }
}