mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 20:25:28 +00:00
Update tests so repositories are not called. Saves on DB calls, speeds up tests.
This commit is contained in:
@@ -27,6 +27,7 @@ use FireflyIII\Http\Middleware\IsSandStormUser;
|
||||
use Route;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Tests\TestCase;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class IsSandstormUserTest
|
||||
@@ -39,7 +40,7 @@ class IsSandstormUserTest extends TestCase
|
||||
public function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
Log::info(sprintf('Now in %s.', \get_class($this)));
|
||||
Route::middleware(IsSandStormUser::class)->any(
|
||||
'/_test/is-sandstorm', function () {
|
||||
return 'OK';
|
||||
|
||||
Reference in New Issue
Block a user