Files
opensourcepos/tests/Controllers
objecttothis 2a42079262 test: align export/report tests with shared fixtures and date filters
- CashupControllerTest: add start_date/end_date params to export-all
  CSV/PDF requests and update expected totals/body assertions to
  match seeded cashup data (closed_amount_total 169.42).
- ExpensesControllerTest: replace manual seeder bootstrap with shared
  DatabaseBootstrapTrait::resetDatabaseOnce, and grant
  expenses_categories permission to test employee for category access.
- ReportsControllerTest: invoke buildDownloadHeaders on response
  before asserting Content-Disposition, matching actual download flow.
- export_helperTest / tabular_helperTest: replace manual OSPOS config
  mock construction (Factories::injectMock) with shared
  OsposConfigFixtureTrait::injectOsposSettings, reducing duplication
  and adding missing number_locale/currency_symbol settings.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-10-23 11:21:25 +04:00
..