kopia lustrzana https://github.com/pixelfed/pixelfed
				
				
				
			
		
			
				
	
	
		
			20 wiersze
		
	
	
		
			445 B
		
	
	
	
		
			PHP
		
	
	
			
		
		
	
	
			20 wiersze
		
	
	
		
			445 B
		
	
	
	
		
			PHP
		
	
	
| <?php
 | |
| 
 | |
| namespace Tests\Unit\Lexer;
 | |
| 
 | |
| use App\Util\Lexer\RestrictedNames;
 | |
| use Tests\TestCase;
 | |
| 
 | |
| class RestrictedNameTest extends TestCase
 | |
| {
 | |
|     /** @test */
 | |
|     public function restrictedUsername()
 | |
|     {
 | |
|         $names = RestrictedNames::get();
 | |
|         $this->assertContains('p', $names);
 | |
|         $this->assertContains('admin', $names);
 | |
|         $this->assertNotContains('dansup', $names);
 | |
|         $this->assertNotContains('earth', $names);
 | |
|     }
 | |
| }
 |