<?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\Core;
use Friendica\Core\ACL;
-use Friendica\Module\BaseApi;
use Friendica\Test\FixtureTest;
class ACLTest extends FixtureTest
*/
public function testCheckAclInput()
{
- $result = ACL::isValidContact('<aclstring>', BaseApi::getCurrentUserID());
+ $result = ACL::isValidContact('<aclstring>', '42');
self::assertFalse($result);
}
*/
public function testCheckAclInputWithEmptyAclString()
{
- $result = ACL::isValidContact('', BaseApi::getCurrentUserID());
+ $result = ACL::isValidContact('', '42');
self::assertTrue($result);
}
}