Skip to content

Commit f937c30

Browse files
committed
ITT: New assertions readme info added.
1 parent b83507b commit f937c30

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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
184204
Checks if specified string is seen as artisan output:

0 commit comments

Comments
 (0)