1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 17:26:43 +00:00
pixelfed/tests/Unit/Lexer/RestrictedNameTest.php

20 lines
445 B
PHP
Raw Normal View History

2019-05-02 18:42:18 +00:00
<?php
namespace Tests\Unit\Lexer;
use App\Util\Lexer\RestrictedNames;
2022-12-21 21:21:07 +00:00
use Tests\TestCase;
2019-05-02 18:42:18 +00:00
class RestrictedNameTest extends TestCase
{
2022-12-21 21:21:07 +00:00
/** @test */
public function restrictedUsername()
{
$names = RestrictedNames::get();
$this->assertContains('p', $names);
$this->assertContains('admin', $names);
$this->assertNotContains('dansup', $names);
$this->assertNotContains('earth', $names);
}
2019-05-02 18:42:18 +00:00
}