Level 67
What datatype is the subscribed column? Are you casting it to a boolean in your model? You should also be using a === instead of a == (that's how assertFalse is comparing).
https://laravel.com/docs/5.6/eloquent-mutators#attribute-casting
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, In test i have:
dd($post->subscribed == false); // returns true
$this->assertFalse($post->subscribed); // fails test ...
any ideas??
Please or to participate in this conversation.