Commit Graph

3 Commits

Author SHA1 Message Date
objec
34811c1eaf Fix Unit Tests
- Refactored for PSR naming
- Corrected errors in unit tests preventing them from passing. save_value() returns a bool, not the itemId

Signed-off-by: objec <objecttothis@gmail.com>
2026-03-31 21:45:05 +04:00
objec
86c62893cc UnitTest Seeder and tests
- Modified generate_message in Db_log.php to be defensive.
- Created a seeder to automatically prepare the test database.
- Modified the Unit Test setup to properly seed the test database.
- Wrote a unit test to test deleting an attribute from an item through the CSV.

Signed-off-by: objec <objecttothis@gmail.com>
2026-03-17 01:16:03 +04:00
jekkos
b1819b3b36 dd validation for invalid stock locations in CSV import (#4399)
- Add validateCSVStockLocations() method to check CSV columns against allowed locations
- Log error when invalid stock location columns are detected
- Tests for valid, invalid, and mixed stock location columns
- Tests for location name case sensitivity
- Tests for CSV parsing and detecting location columns
- Add error message language string for invalid locations

Co-authored-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-03-06 13:17:52 +01:00