]> BookStack Code Mirror - bookstack/blobdiff - tests/TestCase.php
Fixed OIDC Logout
[bookstack] / tests / TestCase.php
index 322ab037032f76ea9adb7b3002f7c2f845f1309d..0ab0792bd00228dfb306b7216e7f61a66be894e3 100644 (file)
@@ -5,6 +5,7 @@ namespace Tests;
 use BookStack\Entities\Models\Entity;
 use BookStack\Settings\SettingService;
 use BookStack\Uploads\HttpFetcher;
+use BookStack\Users\Models\User;
 use GuzzleHttp\Client;
 use GuzzleHttp\Handler\MockHandler;
 use GuzzleHttp\HandlerStack;
@@ -46,6 +47,7 @@ abstract class TestCase extends BaseTestCase
         $this->permissions = new PermissionsProvider($this->users);
         $this->files = new FileProvider();
 
+        User::clearDefault();
         parent::setUp();
 
         // We can uncomment the below to run tests with failings upon deprecations.