mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-29 11:15:09 +00:00
21 lines
499 B
PHP
21 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);
|
|
}
|
|
}
|