Expand test coverage.

This commit is contained in:
James Cole
2019-07-26 17:48:24 +02:00
parent 6ff4a0b45c
commit d94d34ca63
57 changed files with 2243 additions and 1597 deletions

View File

@@ -43,7 +43,7 @@ class IsDemoUserTest extends TestCase
parent::setUp();
Log::info(sprintf('Now in %s.', get_class($this)));
Route::middleware([StartFireflySession::class, IsDemoUser::class])->any(
'/_test/is-demo', function () {
'/_test/is-demo', static function () {
return 'OK';
}
);
@@ -68,6 +68,7 @@ class IsDemoUserTest extends TestCase
$response = $this->get('/_test/is-demo');
$this->assertEquals(Response::HTTP_FOUND, $response->getStatusCode());
$response->assertSessionHas('info');
}
/**