Dynamic environment configs in Laravel Dusk (duskapiconf)

Опубликовано: 29 Сентябрь 2024
на канале: Susan B.
136
5

When writing Dusk tests, sometimes you need to change your application configs on the fly to test different scenarios. You can’t just invoke Laravel’s config helper to do this because it will only change the config for the Dusk instance, not the instance of the app that is being tested. To address this we can use a package called duskapiconf.

duskapiconf package:
https://github.com/AlexandreBellas/du...

=== NOTES ===
https://codewithsusan.com/notes/larav...

=== CHAPTERS ===
00:00 Introduction
01:01 Why you can't just use the config helper
02:56 Solution: duskapiconf package
03:30 Package setup
05:03 Understanding how the package works
06:20 resetConfig