mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
@ -113,16 +113,19 @@ class BarcodeScanHelperTest extends WebTestCase
|
|||
'lot2_vendor_barcode'];
|
||||
}
|
||||
|
||||
public static function invalidDataProvider(): array
|
||||
public static function invalidDataProvider(): \Iterator
|
||||
{
|
||||
return [
|
||||
['https://localhost/part/1'], //Without scan
|
||||
['L-'], //Without number
|
||||
['L-123'], //Too short
|
||||
['X-123456'], //Unknown prefix
|
||||
['XXXWADSDF sdf'], //Garbage
|
||||
[''], //Empty
|
||||
];
|
||||
yield ['https://localhost/part/1'];
|
||||
//Without scan
|
||||
yield ['L-'];
|
||||
//Without number
|
||||
yield ['L-123'];
|
||||
//Too short
|
||||
yield ['X-123456'];
|
||||
//Unknown prefix
|
||||
yield ['XXXWADSDF sdf'];
|
||||
//Garbage
|
||||
yield [''];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue