mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:10:12 +00:00
Move last legacy API tests & adapt phpunit.xml
This commit is contained in:
parent
732663ea6b
commit
fbefb599dc
7 changed files with 173 additions and 304 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue