-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$model->validate() reports correctly, but $model->save() does not #4
Comments
Are you hooking into the save() method somehow? By default, Laravel doesn't auto-validate. |
I'm confused, this is what this package is supposed to do, isn't it?
Doesn't
|
I'm sorry. I thought you were commenting in a different project entirely. I'll take a look. :) |
Is this still an issue? I believe I'm running into the same thing. |
For me, this tests are successful, if I extend my Test class from I couldn't figure out why, but opted to extend Issue is still active, because what if I want to use the nice helper methods for controller testing, etc. defined in |
Basic Model validation, 2 tests defined:
User model:
First test passes, second does not.
Seems odd to me, because save() does directly react to the return value of validate().
What am I doing wrong?
The text was updated successfully, but these errors were encountered: