pixelfed/tests/Unit/Lexer/RestrictedNameTest.php
Daniel Supernault 2598520bbe
Update tests
2021-02-12 22:50:46 -07:00

22 lines
499 B
PHP

<?php
namespace Tests\Unit\Lexer;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
use App\Util\Lexer\RestrictedNames;
class RestrictedNameTest extends TestCase
{
/** @test */
public function restrictedUsername()
{
$names = RestrictedNames::get();
$this->assertContains('p', $names);
$this->assertContains('admin', $names);
$this->assertNotContains('dansup', $names);
$this->assertNotContains('earth', $names);
}
}