Closed kennonb closed 9 years ago
Hmmm, this is odd. Our tests show that the callback stuff is working.
Could you send a pull request to add a failing test to https://github.com/thephpleague/factory-muffin/blob/2.1/tests/EloquentTest.php please so I can investigate.
Thanks for the suggestion.
I created a few small test cases on top of what you already have in the repo. They pass locally, and data is created from the callback, so I must have an issue somewhere else.
So I have a pivot table I'm trying seed using the method described in this issue (#272).
I'm thinking I have to be doing something wrong, since the callback doesn't appear to ever fire. So I feel like I have to be missing something. I'll try to outline what I've done so far.
Setup all.php definitions
Then in my test, I'm creating using the Factory facade
This creates the Email and everything defined in that table, but the callback never fires and the office data is never attached to the Email.
Am I doing something stupid? Or do you need a more fleshed out test case?
Any help is appreciated. :)