FOS\UserBundle\Tests\Validation\UserValidationTest::testGoodUsernameValid PHP 메소드

testGoodUsernameValid() 공개 메소드

    public function testGoodUsernameValid()
    {
        $user = $this->getService('fos_user.user_manager')->createUser();
        $user->setUsername(uniqid());
        $violations = $this->getService('validator')->validate($user, 'Registration');
        $this->assertFalse($this->hasViolationForPropertyPath($violations, 'username'));
    }