Merge pull request #1255 from pixelfed/frontend-ui-refactor

Add unit test
pull/1259/head
daniel 6 years ago committed by GitHub
commit da683569ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,20 @@
<?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());
}
}
Loading…
Cancel
Save