Is there a reason why Eloquent ignores the fillable settings for a model when used in a unit test?
In a non test situation, I get the following output, which is correct,
I was running into this as well. Apparently Laravel unguards models during unit tests so you have to reguard them with Eloquent::reguard(). I would put it in the setUp() method so it runs before every test.
Eloquent::reguard()
setUp()