Counting the items in multiple sub-arrays in Laravel tests using assertJsonCount ()
For a Laravel Test of my Product API I am trying to check if the right number of prices are listed for all products. The API returns Json and the prices are items in the products.*.prices arrays. I am new…