Bug fix: Remove fallback from LCSC barcode part resolver (#1302)

This commit is contained in:
swdee
2026-03-16 06:57:54 +13:00
committed by GitHub
parent de371877b9
commit 60c5e24c94
2 changed files with 5 additions and 10 deletions

View File

@@ -115,8 +115,8 @@ final class BarcodeScanResultHandlerTest extends KernelTestCase
public function testLCSCBarcodeResolvePartOrNullReturnsNullWhenNotFound(): void
{
$scan = new LCSCBarcodeScanResult(
fields: ['pc' => 'C0000000', 'pm' => ''],
rawInput: '{pc:C0000000,pm:}'
fields: ['pc' => 'C0000000', 'pm' => 'NON_EXISTENT_MPN_12345'],
rawInput: '{pc:C0000000,pm:NON_EXISTENT_MPN_12345}'
);
$this->assertNull($this->service->resolvePart($scan));