pull/1255/head
Daniel Supernault 2019-05-02 12:42:18 -06:00
rodzic 4eee2cc7c7
commit a9072b3ad7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 20 dodań i 0 usunięć

Wyświetl plik

@ -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());
}
}