]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/ACLTest.php
spelling: forums
[friendica.git] / tests / src / Core / ACLTest.php
index 920bc5055179117146f2f56d1580777fa354f954..14c7a20c3c72bb979470770db21502f7f118819f 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
  *
@@ -22,7 +22,6 @@
 namespace Friendica\Test\src\Core;
 
 use Friendica\Core\ACL;
-use Friendica\Module\BaseApi;
 use Friendica\Test\FixtureTest;
 
 class ACLTest extends FixtureTest
@@ -34,7 +33,7 @@ class ACLTest extends FixtureTest
         */
        public function testCheckAclInput()
        {
-               $result = ACL::isValidContact('<aclstring>', BaseApi::getCurrentUserID());
+               $result = ACL::isValidContact('<aclstring>', '42');
                self::assertFalse($result);
        }
 
@@ -45,7 +44,7 @@ class ACLTest extends FixtureTest
         */
        public function testCheckAclInputWithEmptyAclString()
        {
-               $result = ACL::isValidContact('', BaseApi::getCurrentUserID());
+               $result = ACL::isValidContact('', '42');
                self::assertTrue($result);
        }
 }