AgentReportFormulaTest.php 506 B

1234567891011121314151617
  1. <?php
  2. namespace Tests\Unit;
  3. use App\Services\Agent\AgentReportService;
  4. use PHPUnit\Framework\TestCase;
  5. class AgentReportFormulaTest extends TestCase
  6. {
  7. public function test_company_profit_uses_cash_flow_formula_and_excludes_manual_adjustments(): void
  8. {
  9. $service = new AgentReportService();
  10. $this->assertSame('39600.0000', $service->companyProfit('50000', '10000', '300', '100'));
  11. $this->assertSame('-1100.0000', $service->companyProfit('0', '1000', '50', '50'));
  12. }
  13. }