mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
563 B
PHTML
21 lines
563 B
PHTML
6 years ago
|
<?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());
|
||
|
}
|
||
|
}
|