Part-DB-server/tests/Services
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
..
Attachments Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
EDA Add KiCadHelper unit tests and fix PDF detection for external URLs 2026-02-08 10:37:37 +01:00
EntityMergers/Mergers Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
Formatters Applied rector to test files 2023-06-11 14:18:53 +02:00
ImportExportSystem add supplier SPN linking for BOM import (#1209) 2026-01-31 22:37:43 +01:00
InfoProviderSystem Added logic to delegate the info retrieval logic to another provider when giving an URL 2026-02-01 20:49:50 +01:00
LabelSystem Fixed phpunit tests 2026-02-01 23:11:56 +01:00
LogSystem Run phpunit code quality rector 2025-07-14 00:38:54 +02:00
Misc Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
Parameters Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
Parts Remove problematic tests 2025-08-31 22:15:58 +02:00
ProjectSystem Use yellow alert box for notifying of empty bom on build, show infinite correclty and added translations 2025-10-18 23:32:20 +02:00
System Improved UpdateExecutor 2026-02-02 20:28:17 +01:00
Trees Migrated phpunit annotations to attributes 2025-07-14 00:32:06 +02:00
UserSystem Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
ElementTypeNameGeneratorTest.php Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
ElementTypesTest.php Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00