grmpyprogrammer,
@grmpyprogrammer@phpc.social avatar

For folks who are using Pest for tests — what is the equivalent of using the RefreshDatabase and TestDatabase traits?

Konafets,
@Konafets@norden.social avatar

@grmpyprogrammer Wondering which usecase Pest fills PHPUnit can‘t.

grmpyprogrammer,
@grmpyprogrammer@phpc.social avatar

@Konafets None really

jclermont,
@jclermont@phpc.social avatar

@grmpyprogrammer I still use PHPUnit, but in Pest there's a uses global function for configuring the base test class and traits

Something like: uses(TestCase::class, RefreshDatabase::class)->in('Feature');

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Laravel
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • thenastyranch
  • mdbf
  • provamag3
  • modclub
  • GTA5RPClips
  • normalnudes
  • khanakhh
  • everett
  • cisconetworking
  • osvaldo12
  • anitta
  • Leos
  • Durango
  • tester
  • megavids
  • JUstTest
  • All magazines