The problem was coming from the fact that the test was using the same data (username, email and password) as a user that was already in the database.
Since the validation check the uniqueness of each new user, the test was failing.
I just removed the existing user from the database and the test passed.
Same error but there is no records in db.
just change the username and email with different data. and should passed it. and no need to insert data on db;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community