RestrictedNameTest.php 563 B

1234567891011121314151617181920
  1. <?php
  2. namespace Tests\Unit\Lexer;
  3. use Tests\TestCase;
  4. use Illuminate\Foundation\Testing\WithFaker;
  5. use Illuminate\Foundation\Testing\RefreshDatabase;
  6. use App\Util\Lexer\RestrictedNames;
  7. class RestrictedNameTest extends TestCase
  8. {
  9. /** @test */
  10. public function restrictedUsername()
  11. {
  12. $this->assertContains('p', RestrictedNames::get());
  13. $this->assertContains('admin', RestrictedNames::get());
  14. $this->assertNotContains('dansup', RestrictedNames::get());
  15. $this->assertNotContains('lain', RestrictedNames::get());
  16. }
  17. }