Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mozex committed Oct 15, 2023
1 parent b9e8615 commit d52fb07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/Commands/FlushAllCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

$this->artisan('scout:flush-all')
->expectsConfirmation(
'Do you really wish to run this command?',
'Are you sure you want to run this command?',
)
->doesntExpectOutput('Flushing started.')
->doesntExpectOutput('Flushing finished successfully.')
Expand All @@ -23,7 +23,7 @@

$this->artisan('scout:flush-all')
->expectsConfirmation(
'Do you really wish to run this command?',
'Are you sure you want to run this command?',
'yes'
)
->expectsOutput('Flushing started.')
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/ImportAllCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

$this->artisan('scout:import-all')
->expectsConfirmation(
'Do you really wish to run this command?',
'Are you sure you want to run this command?',
)
->doesntExpectOutput('Importing started.')
->doesntExpectOutput('Importing finished successfully.')
Expand All @@ -23,7 +23,7 @@

$this->artisan('scout:import-all')
->expectsConfirmation(
'Do you really wish to run this command?',
'Are you sure you want to run this command?',
'yes'
)
->expectsOutput('Importing started.')
Expand Down
4 changes: 2 additions & 2 deletions tests/Commands/RefreshCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

$this->artisan('scout:refresh')
->expectsConfirmation(
'Do you really wish to run this command?',
'Are you sure you want to run this command?',
)
->doesntExpectOutput('Flushing started.')
->doesntExpectOutput('Flushing finished successfully.')
Expand All @@ -32,7 +32,7 @@

$this->artisan('scout:refresh')
->expectsConfirmation(
'Do you really wish to run this command?',
'Are you sure you want to run this command?',
'yes'
)
->expectsOutput('Flushing started.')
Expand Down

0 comments on commit d52fb07

Please # to comment.