Added test for vendor barcode scanner

This commit is contained in:
Jan Böhmer 2023-11-17 23:29:06 +01:00
parent 0ab604d468
commit 5442aa5e07
2 changed files with 5 additions and 0 deletions

View file

@ -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();

View file

@ -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