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.
$this->assertEquals()
Is there something similar way like assertInstanceOf, just for many to many relations?