]> BookStack Code Mirror - bookstack/blobdiff - tests/Auth/SocialAuthTest.php
Minor capitalisation fix for Estonian
[bookstack] / tests / Auth / SocialAuthTest.php
index 5818cbb742bbe57c68292fef25ed59f0deacc473..f70263dd278ae1a8bf93efe26c896bda300d97e3 100644 (file)
@@ -2,9 +2,10 @@
 
 namespace Tests\Auth;
 
+use BookStack\Actions\ActivityType;
 use BookStack\Auth\SocialAccount;
 use BookStack\Auth\User;
-use DB;
+use Illuminate\Support\Facades\DB;
 use Laravel\Socialite\Contracts\Factory;
 use Laravel\Socialite\Contracts\Provider;
 use Mockery;
@@ -82,6 +83,7 @@ class SocialAuthTest extends TestCase
         ]);
         $resp = $this->followingRedirects()->get('/login/service/github/callback');
         $resp->assertDontSee('login-form');
+        $this->assertActivityExists(ActivityType::AUTH_LOGIN, null, 'github; (' . $this->getAdmin()->id . ') ' . $this->getAdmin()->name);
     }
 
     public function test_social_account_detach()