fix: env vars handled via conf file, add: functional tests

This commit is contained in:
Michael 2024-08-17 18:06:06 +02:00
parent 3d08b14f11
commit 21c4330f16
39 changed files with 416 additions and 172 deletions

View file

@ -7,7 +7,7 @@ class UnitTest extends TestCase
public function test_export_endpoint_works_for_logged_in_users()
{
$res = $this->post('/export', array(
'token' => getenv('GITEA_TOKEN'),
'token' => config('app.gitea_token'),
'from_month' => '10',
'from_year' => '2023',
'to_month' => '12',