meijdenmedia
1 year ago
131
3
Testing

Unit Test "deep" relational data

Posted 1 year ago by meijdenmedia

Dear community,

In Laravel it is very normal to get data from related objects like $customer->wallet->balance. What is the best approach in testing the value of the customers' current balance? Sometimes this even goes a layer deeper.

Thanks!

Please sign in or create an account to participate in this conversation.