X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0704f1bd0dad9d21278a635c0d9c4eaacbb6a077..refs/pull/5676/head:/tests/Commands/DeleteUsersCommandTest.php diff --git a/tests/Commands/DeleteUsersCommandTest.php b/tests/Commands/DeleteUsersCommandTest.php index 4d8081b6f..a959df95d 100644 --- a/tests/Commands/DeleteUsersCommandTest.php +++ b/tests/Commands/DeleteUsersCommandTest.php @@ -15,7 +15,7 @@ class DeleteUsersCommandTest extends TestCase $normalUserCount = $userCount - count($normalUsers); $this->artisan('bookstack:delete-users') - ->expectsQuestion('This will delete all users from the system that are not "admin" or system users. Are you sure you want to continue? (Type "yes" to continue)', 'yes') + ->expectsConfirmation('Are you sure you want to continue?', 'yes') ->expectsOutputToContain("Deleted $normalUserCount of $userCount total users.") ->assertExitCode(0); @@ -27,7 +27,7 @@ class DeleteUsersCommandTest extends TestCase $normalUsers = $this->getNormalUsers(); $this->artisan('bookstack:delete-users') - ->expectsQuestion('This will delete all users from the system that are not "admin" or system users. Are you sure you want to continue? (Type "yes" to continue)', 'no') + ->expectsConfirmation('Are you sure you want to continue?', 'no') ->assertExitCode(0); $this->assertDatabaseHas('users', ['id' => $normalUsers->first()->id]);