]> git.mxchange.org Git - friendica.git/commitdiff
And again ...
authorMichael <heluecht@pirati.ca>
Thu, 18 Nov 2021 06:58:43 +0000 (06:58 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 18 Nov 2021 06:58:43 +0000 (06:58 +0000)
tests/legacy/ApiTest.php

index 93a8d173eba60bd7a02742878a306afaa2778e8c..cc8bff1782be67f6c40e8d1afef2126a391ccb46 100644 (file)
@@ -224,7 +224,7 @@ class ApiTest extends FixtureTest
         */
        public function testApiUser()
        {
-               self::assertEquals($this->selfUser['id'], api_user());
+               self::assertEquals($this->selfUser['id'], BaseApi::getCurrentUserID());
        }
 
        /**
@@ -711,11 +711,14 @@ class ApiTest extends FixtureTest
         */
        public function testApiGetUserWithoutApiUser()
        {
+               // api_get_user() with empty parameters is not used anymore
+               /*
                $_SERVER['PHP_AUTH_USER'] = 'Test user';
                $_SERVER['PHP_AUTH_PW']   = 'password';
                $_SESSION['allow_api']    = false;
                BasicAuth::setCurrentUserID();
                self::assertFalse(api_get_user());
+               */
        }
 
        /**