mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Added test for vendor barcode scanner
This commit is contained in:
parent
0ab604d468
commit
5442aa5e07
2 changed files with 5 additions and 0 deletions
|
@ -103,6 +103,7 @@ class PartFixtures extends Fixture implements DependentFixtureInterface
|
|||
$partLot2->setComment('Test');
|
||||
$partLot2->setNeedsRefill(true);
|
||||
$partLot2->setStorageLocation($manager->find(StorageLocation::class, 3));
|
||||
$partLot2->setVendorBarcode('lot2_vendor_barcode');
|
||||
$part->addPartLot($partLot2);
|
||||
|
||||
$orderdetail = new Orderdetail();
|
||||
|
|
|
@ -107,6 +107,10 @@ class BarcodeScanHelperTest extends WebTestCase
|
|||
//Test IPN barcode
|
||||
yield [new BarcodeScanResult(LabelSupportedElement::PART, 2, BarcodeSourceType::IPN),
|
||||
'IPN123'];
|
||||
|
||||
//Test vendor barcode
|
||||
yield [new BarcodeScanResult(LabelSupportedElement::PART_LOT, 2,BarcodeSourceType::VENDOR),
|
||||
'lot2_vendor_barcode'];
|
||||
}
|
||||
|
||||
public static function invalidDataProvider(): array
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue