mirror of
https://github.com/friendica/friendica
synced 2025-04-25 07:10:11 +00:00
36 lines
743 B
PHP
36 lines
743 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Test\src\Core;
|
|
|
|
use Friendica\Core\ACL;
|
|
use Friendica\Test\FixtureTestCase;
|
|
|
|
class ACLTest extends FixtureTestCase
|
|
{
|
|
/**
|
|
* Test the ACL::isValidContact() function.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testCheckAclInput()
|
|
{
|
|
$result = ACL::isValidContact('<aclstring>', '42');
|
|
self::assertFalse($result);
|
|
}
|
|
|
|
/**
|
|
* Test the ACL::isValidContact() function with an empty ACL string.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testCheckAclInputWithEmptyAclString()
|
|
{
|
|
$result = ACL::isValidContact('', '42');
|
|
self::assertTrue($result);
|
|
}
|
|
}
|