]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/DeleteUsersCommandTest.php
ZIP Imports: Added API examples, finished testing
[bookstack] / tests / Commands / DeleteUsersCommandTest.php
index 4d8081b6f1ea35971f777b9639e288b9ba2dcfbf..a959df95dfe7d49fd29c647663a5e3f51aaf896b 100644 (file)
@@ -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]);