You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing controller tests and I'd like to test if the response data corresponds to a given DTO
Basically something as simple as that
$this->assertResponseDtoSame(Dto::class);
I can't think of any easy and robust way to achieve this, and cannot find any package with this kind of logic
The only thing that looks like it is a method from ApiPlatform WebTestCase but it does not look like it can be installed without ApiPlatform and I don't want to use it
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am writing controller tests and I'd like to test if the response data corresponds to a given DTO
Basically something as simple as that
I can't think of any easy and robust way to achieve this, and cannot find any package with this kind of logic
The only thing that looks like it is a method from ApiPlatform WebTestCase but it does not look like it can be installed without ApiPlatform and I don't want to use it
Beta Was this translation helpful? Give feedback.
All reactions