I'm using laravel 5.6 and I'm currently writing tests.
I would like to perform action like this in my unit/feature test
$this->actingAs( $user)->visit('/')
->click('my_button');
But the click/visit functions are not available in the default tests. They are only available when using Dusk
But Dusk take more time to run, is it possible to bring back some functions like click in the default unit test run by phpunit?
Aucun commentaire:
Enregistrer un commentaire