mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-11-08 23:43:32 -05:00
Add feature tests verifying CSV/PDF/XML/SQL export endpoints work correctly across many controllers, plus helper unit tests and shared fixtures to support them. - Add downloadResponseBody() reflection helper (reads private $binary property on DownloadResponse) to CashupControllerTest, EmployeesControllerTest, ItemKitsControllerTest for asserting streamed download content - Add exportAll CSV/PDF tests for Attributes, Customers, Expenses_categories, Expenses, Giftcards, ItemKits, Cashup, Employees controllers - Add export_helperTest covering CSV sanitization (formula injection guard), JSON/XML/SQL writers, tag sanitization, and file generation - Add Tests/Support/ExportFixtureTrait with reusable fixture objects for sales, employees, customers, suppliers, items, giftcards, item kits, attributes, expenses, cashups, tax rates - Update AGENTS.md: clarify `use` import rule applies to every reference including global-namespace classes (ReflectionClass/ReflectionProperty/Exception) and method-signature type-hints, not just namespaced app classes Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>