Fix User model validation behavior, closes #950
This commit is contained in:
parent
50809cad36
commit
c61c2bc5fd
3 changed files with 23 additions and 0 deletions
|
@ -7,6 +7,14 @@ use Pterodactyl\Rules\Username;
|
|||
|
||||
class UsernameTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Test that this rule can be cast to a string correctly.
|
||||
*/
|
||||
public function testRuleIsStringable()
|
||||
{
|
||||
$this->assertSame('p_username', (string) new Username);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test valid usernames.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue