mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
21 lines
563 B
PHP
21 lines
563 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()
|
||
|
{
|
||
|
$this->assertContains('p', RestrictedNames::get());
|
||
|
$this->assertContains('admin', RestrictedNames::get());
|
||
|
$this->assertNotContains('dansup', RestrictedNames::get());
|
||
|
$this->assertNotContains('lain', RestrictedNames::get());
|
||
|
}
|
||
|
}
|