mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix User model validation behavior, closes #950
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user