try unit test creating csv -not working
This commit is contained in:
parent
e36bb52245
commit
5822224c67
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue