mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 07:34:43 +00:00
🤖 Auto commit for release 'develop' on 2025-08-16
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\integration\Api\Chart;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\integration\TestCase;
|
||||
|
||||
class BalanceControllerTest extends TestCase
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class BalanceControllerTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
private $user;
|
||||
@@ -28,14 +35,15 @@ class BalanceControllerTest 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.balance.balance') . '?' . http_build_query($params));
|
||||
$response = $this->getJson(route('api.v1.chart.balance.balance').'?'.http_build_query($params));
|
||||
$response->assertStatus(200);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user