]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/ResetMfaCommandTest.php
respective book and chapter structure added.
[bookstack] / tests / Commands / ResetMfaCommandTest.php
index 550f6d390ede0f05159681c1ee15aa13b43e8eca..39c8c689b0c7944ce45dd76847df7c1831d1987f 100644 (file)
@@ -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=<number> or --email=<email> option must be provided.')
+            ->expectsOutputToContain('Either a --id=<number> or --email=<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 protected]")
+        $this->artisan('bookstack:reset-mfa [email protected]')
             ->expectsOutput('A user where [email protected] could not be found.')
             ->assertExitCode(1);
     }