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:
179
179
$this->willNotSeeConfirmation(' Are you sure? ' , OtherCommand::class);
180
180
```
181
181
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
+
182
202
#### `seeArtisanOutput()`
183
203
184
204
Checks if specified string is seen as artisan output:
You can’t perform that action at this time.
0 commit comments