1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Aligned command class code

- Aligned usage of injecting through handler.
- Aligned handler return type.
- Aligned argument and arg desc format.
- Aligned lack of constructor.
This commit is contained in:
Dan Brown
2023-05-24 12:59:50 +01:00
parent 0704f1bd0d
commit c0620da9f8
17 changed files with 86 additions and 250 deletions

View 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]);