Is your label for the correct input? Maybe you left it as password instead of password_confirmation assuming you copy + pasted. Is your spelling correct? Do you have a colon after "Password Confirmation"?
Test Failing but app working in Form Validation
Laracasts\Validation\FormValidationException: Validation failed
Scenario Steps: 9. I click "Sign Up" THIS IS RED 8. I fill field "Password Confirmation:","demo" 7. I fill field "Password:","demo" 6. I fill field "Email:","john@example.com" 5. I fill field "Username:","JohnDoe" 4. I see current url equals "/register" 3. I click "Sign Up!"
when i do a dd like
public function store() { dd(Input::all()); $this->registrationForm->validate(Input::all());
extract(Input::only('username', 'email', 'password'));
$user = $this->execute(
new RegisterUserCommand($username, $email, $password)
);
Auth::login($user);
return Redirect::home();
}
I get
Functional Tests (1) ---------------------------------------------------------------------------------------- Trying to sign up for a account (SignUpCept) array(5) { '_token' => string(40) "gjzeNsyqpRBYcNZUQBj2xmu7Tf5oFeRsx5fru10Y" 'username' => string(7) "JohnDoe" 'email' => string(16) "john@example.com" 'password' => string(4) "demo" 'password_confirmation' => string(0) "" WHY?????????????? }
{{Form::label('password', 'Password Confirmation:')}}
Change that to the following:
{{Form::label('password_confirmation', 'Password Confirmation:')}}
Please or to participate in this conversation.