🤖 Auto commit for release 'develop' on 2025-08-16

This commit is contained in:
JC5
2025-08-16 19:36:45 +02:00
parent eccc58e75a
commit 3409240a19
22 changed files with 96 additions and 73 deletions

View File

@@ -1,11 +1,18 @@
<?php
declare(strict_types=1);
namespace Tests\integration\Api\Chart;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\integration\TestCase;
class CategoryControllerTest extends TestCase
/**
* @internal
*
* @coversNothing
*/
final class CategoryControllerTest extends TestCase
{
use RefreshDatabase;
private $user;
@@ -28,14 +35,15 @@ class CategoryControllerTest extends TestCase
$response->assertStatus(422);
}
public function testGetOverviewChart(): void
{
$this->actingAs($this->user);
$params = [
$params = [
'start' => '2024-01-01',
'end' => '2024-01-31',
];
$response = $this->getJson(route('api.v1.chart.category.overview') . '?' . http_build_query($params));
$response = $this->getJson(route('api.v1.chart.category.overview').'?'.http_build_query($params));
$response->assertStatus(200);
}