Part-DB-server/tests
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
..
API Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
assets Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
Controller Add stock quantity, datasheet URL, and HTTP caching to KiCad API 2026-02-08 09:57:10 +01:00
DataTables/Filters Fixed tests 2025-09-21 21:35:13 +02:00
Doctrine Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
Entity Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
EnvVarProcessors Allow that the DEFAULT_URI does not end with a slash 2025-12-04 23:31:42 +01:00
EventListener Replace hardcoded entity type names with synonym placeholders in English and German translations (#1128) 2025-12-07 14:09:22 +01:00
EventSubscriber Only check every 10 minutes if the user needs to setup a 2FA method enforced by its group 2023-07-19 00:56:28 +02:00
Exceptions Run rector 2025-07-14 00:26:40 +02:00
Form/InfoProviderSystem Fixed phpunit deprecations 2025-11-30 14:45:40 +01:00
Helpers Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
Repository Added feature for part IPN suggest with category prefixes (#1054) 2025-11-03 00:31:47 +01:00
Security Added declare strict types to all files 2023-06-11 18:59:07 +02:00
Serializer Migrated phpunit annotations to attributes 2025-07-14 00:32:06 +02:00
Services Add KiCadHelper unit tests and fix PDF detection for external URLs 2026-02-08 10:37:37 +01:00
Settings Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
Twig Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
Validator Fixed PHPunit tests 2025-07-13 20:06:38 +02:00
.gitignore Initial commit 2019-02-23 16:49:38 +01:00
ApplicationAvailabilityFunctionalTest.php Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
bootstrap.php Updated phpunit recipe 2025-07-13 16:53:41 +02:00
DatatablesAvailabilityTest.php Fixed tests for new PHPunit 11.5 2025-07-14 21:57:27 +02:00
object-manager.php Fixed PHPstan issues 2023-08-28 22:39:29 +02:00
SettingsTestHelper.php Run rector 2025-07-14 00:26:40 +02:00
symfony-container.php Added declare strict types to all files 2023-06-11 18:59:07 +02:00