laravel-test-assertions icon indicating copy to clipboard operation
laravel-test-assertions copied to clipboard

TestResponse and FactoryBuilder macros

Open devmsh opened this issue 5 years ago • 3 comments
trafficstars

Hi,

I don't know if TestResponse macros can be part of the package or it's out of your interests? for example, I have a assertJsonPaths and assertPaginated witch I have several use cases for them when I develop APIs.

If you interested let me know to open RP for some of them, and if you prefer to have each one as a separate PR or we can add a bulk of macros together.

Sometimes I also add some macros to the FactoryBuilder like a data macro as a shortcut for factory(Model::class)->make()->toArray() which is also useful for some use cases.

Have a nice day and keep safe 👍

devmsh avatar Apr 05 '20 19:04 devmsh

Absolutely. The more the merrier.

I only ask that you PR them separately and make a quick effort to list them in the README.

jasonmccreary avatar Apr 05 '20 20:04 jasonmccreary

I will add the first one tomorrow, and once we agreed about the format and merged the first PR, the rest will be easier 👍

devmsh avatar Apr 05 '20 20:04 devmsh

@devmsh any process on this?

jasonmccreary avatar Apr 14 '20 12:04 jasonmccreary