I am looking for an elegant way for a Unit test.
my database is looking like:
categories - id - name desks - id - name - something else categoryable - categorie_id - categoryable_id - categoryable_type
The morph relations itself are working. Now im pulling some arrays from the collections to test via assertEquals, which seems like a really ugly way of doing it.
Is there something similar way like assertInstanceOf, just for many to many relations?