pixelfed/tests/Unit/Lexer/RestrictedNameTest.php

20 lines
445 B
PHP
Raw Permalink 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
}