From e11c73aa6d23a909f1e462570ae924c67cfb49e3 Mon Sep 17 00:00:00 2001 From: swdee Date: Thu, 12 Mar 2026 11:53:49 +1300 Subject: [PATCH] fix LCSC barecode scan result test erroring on empty part number string test data --- .../BarcodeScanner/BarcodeScanResultHandlerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandlerTest.php b/tests/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandlerTest.php index 95313e13..1cfe76b5 100644 --- a/tests/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandlerTest.php +++ b/tests/Services/LabelSystem/BarcodeScanner/BarcodeScanResultHandlerTest.php @@ -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));