objecttothis
|
4bc2bac204
|
test: add export-all coverage across controllers and helpers
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>
|
2026-10-21 15:47:09 +04:00 |
|