mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-09 00:39:37 +00:00
Fixed tests
This commit is contained in:
parent
7f8f5990a7
commit
13b98cc0b1
3 changed files with 11 additions and 8 deletions
|
|
@ -115,6 +115,8 @@ final class BarcodeScanHelperTest extends WebTestCase
|
|||
yield [new LocalBarcodeScanResult(LabelSupportedElement::PART_LOT, 2,BarcodeSourceType::USER_DEFINED),
|
||||
'lot2_vendor_barcode'];
|
||||
|
||||
|
||||
$input = "[)>\x1E06\x1DP596-777A1-ND\x1D1PXAF4444\x1DQ3\x1D10D1452\x1D1TBF1103\x1D4LUS\x1E\x04";
|
||||
$eigp114Result = new EIGP114BarcodeScanResult([
|
||||
'P' => '596-777A1-ND',
|
||||
'1P' => 'XAF4444',
|
||||
|
|
@ -122,9 +124,9 @@ final class BarcodeScanHelperTest extends WebTestCase
|
|||
'10D' => '1452',
|
||||
'1T' => 'BF1103',
|
||||
'4L' => 'US',
|
||||
]);
|
||||
], $input);
|
||||
|
||||
yield [$eigp114Result, "[)>\x1E06\x1DP596-777A1-ND\x1D1PXAF4444\x1DQ3\x1D10D1452\x1D1TBF1103\x1D4LUS\x1E\x04"];
|
||||
yield [$eigp114Result, $input];
|
||||
|
||||
$lcscInput = '{pc:C138033,pm:RC0402FR-071ML,qty:10}';
|
||||
$lcscResult = new LCSCBarcodeScanResult(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue