File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -179,6 +179,26 @@ Checks if confirmation is not seen during artisan command execution:
179179$this->willNotSeeConfirmation(' Are you sure? ' , OtherCommand::class);
180180```
181181
182+ #### `willGiveConfirmation()`
183+
184+ Checks if confirmation is seen during artisan command execution and accepts it:
185+
186+ ```php
187+ $this->willGiveConfirmation(' Are you sure? ' , MyCommand::class);
188+
189+ $this->seeArtisanOutput(' Done! ' );
190+ ```
191+
192+ #### `willNotGiveConfirmation()`
193+
194+ Checks if confirmation is seen during artisan command execution and refuses it:
195+
196+ ```php
197+ $this->willNotGiveConfirmation(' Are you sure? ' , MyCommand::class);
198+
199+ $this->dontSeeArtisanOutput(' Done! ' );
200+ ```
201+
182202#### `seeArtisanOutput()`
183203
184204Checks if specified string is seen as artisan output:
You can’t perform that action at this time.
0 commit comments