X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/cac31b2074cc0429423ffe7b8646ca0b5b367fe6..refs/pull/5280/head:/tests/Commands/ResetMfaCommandTest.php diff --git a/tests/Commands/ResetMfaCommandTest.php b/tests/Commands/ResetMfaCommandTest.php index 550f6d390..39c8c689b 100644 --- a/tests/Commands/ResetMfaCommandTest.php +++ b/tests/Commands/ResetMfaCommandTest.php @@ -2,8 +2,8 @@ namespace Tests\Commands; -use BookStack\Auth\Access\Mfa\MfaValue; -use BookStack\Auth\User; +use BookStack\Access\Mfa\MfaValue; +use BookStack\Users\Models\User; use Tests\TestCase; class ResetMfaCommandTest extends TestCase @@ -11,7 +11,7 @@ class ResetMfaCommandTest extends TestCase public function test_command_requires_email_or_id_option() { $this->artisan('bookstack:reset-mfa') - ->expectsOutput('Either a --id= or --email= option must be provided.') + ->expectsOutputToContain('Either a --id= or --email= option must be provided.') ->assertExitCode(1); } @@ -58,7 +58,7 @@ class ResetMfaCommandTest extends TestCase public function test_giving_non_existing_user_shows_error_message() { - $this->artisan("bookstack:reset-mfa --email=donkeys@example.com") + $this->artisan('bookstack:reset-mfa --email=donkeys@example.com') ->expectsOutput('A user where email=donkeys@example.com could not be found.') ->assertExitCode(1); }