pixelfed/tests/Unit/Lexer/RestrictedNameTest.php

22 lines
499 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
{
2021-02-13 05:50:46 +00:00
/** @test */
public function restrictedUsername()
{
$names = RestrictedNames::get();
$this->assertContains('p', $names);
$this->assertContains('admin', $names);
$this->assertNotContains('dansup', $names);
$this->assertNotContains('earth', $names);
}
2019-05-02 18:42:18 +00:00
}