Is it possible to test Laravel Artisan Command with unpredictable output?
For example, my artisan command has an output:
Your new password is: bGiJjIjAT0
That bGiJjIjAT0 is actually a random string. The artisan command generate that random string.
AFAIK, Console test expectsOutput expects exact strings.
Aucun commentaire:
Enregistrer un commentaire