add controllers, servoices

This commit is contained in:
root
2026-03-09 02:52:13 -04:00
parent c8de5f7edc
commit d76c871cb7
501 changed files with 34439 additions and 21843 deletions
@@ -0,0 +1,31 @@
<?php
namespace Tests\Unit\Services\Finance;
use App\Services\Finance\FinancialChartService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class FinancialChartServiceTest extends TestCase
{
use RefreshDatabase;
public function test_generate_charts_returns_null_in_tests(): void
{
$service = new FinancialChartService();
$summary = [
'totalCharges' => 100,
'amountCollected' => 80,
'totalUnpaid' => 20,
'totalDiscounts' => 5,
'totalRefunds' => 2,
'totalExpenses' => 10,
'totalReimbursements' => 4,
'netAmount' => 93,
];
$this->assertNull($service->generateBarChart($summary));
$this->assertNull($service->generatePieChart($summary));
}
}