Skip to content

Commit f100296

Browse files
committed
ITT: New assertions readme info added.
1 parent ecfd77e commit f100296

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,22 @@ $command = $this->runArtisan(new MyCommand, ['--name' => 'Jane']);
161161
162162
### ArtisanAsserts
163163
164+
#### `willSeeConfirmation()`
165+
166+
Checks if confirmation is seen while artisan command execution:
167+
168+
```php
169+
$this->willSeeConfirmation('Are you sure?', MyCommand::class);
170+
```
171+
172+
#### `willNotSeeConfirmation()`
173+
174+
Checks if confirmation is not seen while artisan command execution:
175+
176+
```php
177+
$this->willNotSeeConfirmation('Are you sure?', OtherCommand::class);
178+
```
179+
164180
#### `seeArtisanOutput()`
165181
166182
Checks if specified string is seen as artisan output:

0 commit comments

Comments
 (0)