X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/0323ebccd3747cc757819e265ccad87889ec0acf..refs/pull/4467/head:/tests/TestCase.php diff --git a/tests/TestCase.php b/tests/TestCase.php index 322ab0370..0ab0792bd 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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.