The PHPUnit diff for assertFetchedToOne has the expected as the actual content. The expected for the diff should be the resource identifier.
Picked up on this when using the assertion when reading the related resource. The assertion correctly failed (because the content was a resource object instead of a resource identifier) but the diff was wrong.
The PHPUnit diff for
assertFetchedToOnehas the expected as the actual content. The expected for the diff should be the resource identifier.Picked up on this when using the assertion when reading the related resource. The assertion correctly failed (because the content was a resource object instead of a resource identifier) but the diff was wrong.