From d52fb070b0c0b0304f02c2e832c098e3ff42a4c8 Mon Sep 17 00:00:00 2001 From: Mohammad Zahed Date: Sun, 15 Oct 2023 20:58:25 +0300 Subject: [PATCH] improve tests --- tests/Commands/FlushAllCommandTest.php | 4 ++-- tests/Commands/ImportAllCommandTest.php | 4 ++-- tests/Commands/RefreshCommandTest.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Commands/FlushAllCommandTest.php b/tests/Commands/FlushAllCommandTest.php index 8c8c55e..e776927 100644 --- a/tests/Commands/FlushAllCommandTest.php +++ b/tests/Commands/FlushAllCommandTest.php @@ -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.') @@ -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.') diff --git a/tests/Commands/ImportAllCommandTest.php b/tests/Commands/ImportAllCommandTest.php index 754b111..ab06deb 100644 --- a/tests/Commands/ImportAllCommandTest.php +++ b/tests/Commands/ImportAllCommandTest.php @@ -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.') @@ -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.') diff --git a/tests/Commands/RefreshCommandTest.php b/tests/Commands/RefreshCommandTest.php index 5ee4ccf..3b364bb 100644 --- a/tests/Commands/RefreshCommandTest.php +++ b/tests/Commands/RefreshCommandTest.php @@ -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.') @@ -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.')