mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-19 18:01:30 +00:00
fix LCSC barecode scan result test erroring on empty part number string test data
This commit is contained in:
parent
332fae055b
commit
e11c73aa6d
1 changed files with 2 additions and 2 deletions
|
|
@ -115,8 +115,8 @@ final class BarcodeScanResultHandlerTest extends KernelTestCase
|
||||||
public function testLCSCBarcodeResolvePartOrNullReturnsNullWhenNotFound(): void
|
public function testLCSCBarcodeResolvePartOrNullReturnsNullWhenNotFound(): void
|
||||||
{
|
{
|
||||||
$scan = new LCSCBarcodeScanResult(
|
$scan = new LCSCBarcodeScanResult(
|
||||||
fields: ['pc' => 'C0000000', 'pm' => ''],
|
fields: ['pc' => 'C0000000', 'pm' => 'NON_EXISTENT_MPN_12345'],
|
||||||
rawInput: '{pc:C0000000,pm:}'
|
rawInput: '{pc:C0000000,pm:NON_EXISTENT_MPN_12345}'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertNull($this->service->resolvePart($scan));
|
$this->assertNull($this->service->resolvePart($scan));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue