Back

Can't get the idea of a Pest plugin that makes it easier to test complicated Laravel migrations out of my head.

It has always bothered me the kind of data migrations that will end up untested in a migration.

Anyone ever try something like this?
image

2

416

  • No matching results...
  • Searching...

/ 1000

I've been noodling on a solution. Definitely seems possible with a function that generates a dataset.

Is it possible to add a macro function on `TestCall` itself to get that `migration` chain?

130

This extension is coming along, but had to settle on some alternate syntax's because I can't figure out if it is possible to extend the underlying TestCall inside of Pest.

Anyone know how I could get that ->migration(...) working?
github.com/JHWelch/pest-plugin-laravel-migrations

1

122

Yeah I had been looking there. Seems that sort of extension off the actual TestCall is not supported yet!

Anyway, I got things working with a different API. Stabilizing the package now, but excited with how it is coming.

119