Part-DB-server/tests/Services
Sebastian Almberg 6422fa62d1 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-16 21:10:58 +01:00
..
Attachments Ran rector and made tests final 2026-02-14 23:32:43 +01:00
EDA Add KiCadHelper unit tests and fix PDF detection for external URLs 2026-02-16 21:10:58 +01:00
EntityMergers/Mergers Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Formatters Ran rector and made tests final 2026-02-14 23:32:43 +01:00
ImportExportSystem Fix fallback filename (#1238) 2026-02-15 14:41:25 +01:00
InfoProviderSystem Ran rector and made tests final 2026-02-14 23:32:43 +01:00
LabelSystem Ran rector and made tests final 2026-02-14 23:32:43 +01:00
LogSystem Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Misc Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Parameters Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Parts Ran rector and made tests final 2026-02-14 23:32:43 +01:00
ProjectSystem Ran rector and made tests final 2026-02-14 23:32:43 +01:00
System Ran rector and made tests final 2026-02-14 23:32:43 +01:00
Trees Ran rector and made tests final 2026-02-14 23:32:43 +01:00
UserSystem Ran rector and made tests final 2026-02-14 23:32:43 +01:00
ElementTypeNameGeneratorTest.php Ran rector and made tests final 2026-02-14 23:32:43 +01:00
ElementTypesTest.php Ran rector and made tests final 2026-02-14 23:32:43 +01:00