mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-18 05:08:13 +01:00
Bug fix: Remove fallback from LCSC barcode part resolver (#1302)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user