framework
framework copied to clipboard
[JSON:API] add tests for type, included merge and id in attributes
Added failing test to assert that:
- Model type is picked from morph map
- "included" resources do not contain primary key in attributes
- "included" matching resource attributes are merged
I'm unsure how the intended way will be to test the data so picked what I found around other tests.