Closed bobbybouwmann closed 9 years ago
So what I did was remove my vendor directory and installed everything again with composer install
. It's working now.
So after creating some more tests it started happening again, is this a real bug or am I doing something wrong?
Hi, I got the same issue with you.And reinstall the vendor by composer seems didn't work for me
I also just started experiencing this behavior. Just as an FYI, if you fall back to 2.0.12 for now it starts working again:
"require-dev": {
"phpspec/phpspec": "~2.1",
"codeception/codeception": "~2.0",
"laracasts/testdummy": "2.0.12"
},
composer update
to TestDummy 2.1.2 fixed it for me!
So here is the issue. I have a user which has one role (role_id). When I create the user with TestDummy with overrides it gives an error while it creating the associated role!
This is my setup
And now the test part
This is the error
As you can see in the error it tries to insert the overrides for the User model in the Role model, while that shouldn't be happening!
If you need anything else please let me know!