Part-DB-server/tests/Services/EDA
Sebastian Almberg 789f17a88d Add KiCadHelper unit tests and fix PDF detection for external URLs
- Add comprehensive KiCadHelperTest with 14 test cases covering:
  - Stock quantity calculation (zero, single lot, multiple lots)
  - Stock exclusion of expired and unknown-quantity lots
  - Storage location display (present, absent, multiple)
  - Datasheet URL resolution by type name, attachment name, PDF extension
  - Datasheet fallback to Part-DB URL when no match
  - "Data sheet" (with space) name variant matching
- Fix PDF extension detection for external attachments (getExtension()
  returns null for external-only attachments, now also parses URL path)
2026-02-08 10:37:37 +01:00
..
KiCadHelperTest.php Add KiCadHelper unit tests and fix PDF detection for external URLs 2026-02-08 10:37:37 +01:00