try unit test creating csv -not working

This commit is contained in:
Marco Cavalli 2023-10-12 16:38:51 +02:00
parent e36bb52245
commit 5822224c67
1 changed files with 23 additions and 0 deletions

23
tests/UnitTest.php Normal file
View File

@ -0,0 +1,23 @@
<?php
use Tests\TestCase;
use App\Http\Controllers\GiteaApiController;
use Laravel\Lumen\Testing\DatabaseMigrations;
use Laravel\Lumen\Testing\DatabaseTransactions;
class UnitTest extends TestCase
{
public function test_export_endpoint_works_for_logged_in_users()
{
$res = $this->post('/export', array(
'token' => getenv('GITEA_TOKEN'),
'from_month' => '10',
'from_year' => '2023',
'to_month' => '12',
'to_year' => '2023'
));
$res->assertResponseOk();
//dd($res);
}
}