mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Expand test coverage.
This commit is contained in:
@@ -71,4 +71,18 @@ class SandstormTest extends TestCase
|
||||
|
||||
putenv('SANDSTORM=0');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Http\Middleware\Sandstorm
|
||||
*/
|
||||
public function testMiddlewareNotSandstorm(): void
|
||||
{
|
||||
putenv('SANDSTORM=0');
|
||||
|
||||
$response = $this->get('/_test/sandstorm');
|
||||
$this->assertEquals(Response::HTTP_OK, $response->getStatusCode());
|
||||
$response->assertSee('sandstorm-anon: false');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user