1
0
Fork 0
forked from mirror/pixelfed
pixelfed/tests/Unit/Lexer/RestrictedNameTest.php

21 lines
563 B
PHP
Raw Normal View History

2019-05-02 18:42:18 +00:00
<?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());
}
}