improve user unique check (#3621)

This commit is contained in:
Kevin Papst
2022-11-06 14:15:21 +01:00
committed by GitHub
parent 3d0f480d9e
commit 6235d18dab
3 changed files with 6 additions and 7 deletions

View File

@@ -92,15 +92,15 @@ class UserValidatorTest extends ConstraintValidatorTestCase
->buildViolation('The email is already used.')
->atPath('property.path.email')
->setCode(User::USER_EXISTING_EMAIL)
->buildNextViolation('An equal username is already used.')
->atPath('property.path.email')
->setCode(User::USER_EXISTING_EMAIL_AS_NAME)
->buildNextViolation('An equal email is already used.')
->atPath('property.path.username')
->setCode(User::USER_EXISTING_NAME_AS_EMAIL)
->buildNextViolation('The username is already used.')
->atPath('property.path.username')
->setCode(User::USER_EXISTING_NAME)
->buildNextViolation('An equal username is already used.')
->atPath('property.path.email')
->setCode(User::USER_EXISTING_EMAIL_AS_NAME)
->assertRaised();
}
}