]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Module/BaseApiTest.php
Merge pull request #12920 from annando/issue-12701
[friendica.git] / tests / src / Module / BaseApiTest.php
index b01628bd0046f156d077a3df86482d36769f7717..08a0794c8362113e8e98eb242d682aaa6e8272d7 100644 (file)
@@ -1,6 +1,6 @@
 <?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
  *
@@ -21,6 +21,7 @@
 
 namespace Friendica\Test\src\Module;
 
+use Friendica\Module\BaseApi;
 use Friendica\Test\src\Module\Api\ApiTest;
 
 class BaseApiTest extends ApiTest
@@ -47,4 +48,14 @@ class BaseApiTest extends ApiTest
                );
                */
        }
+
+       /**
+        * Test the BaseApi::getCurrentUserID() function.
+        *
+        * @return void
+        */
+       public function testApiUser()
+       {
+               self::assertEquals(parent::SELF_USER['id'], BaseApi::getCurrentUserID());
+       }
 }