rename currentstock bulk form
This commit is contained in:
parent
ab0677c463
commit
ca0e7d300d
3 changed files with 7 additions and 7 deletions
|
@ -75,8 +75,8 @@ test('Bulk Edit Form submission updates drink type current stock levels', functi
|
|||
|
||||
// Update the current stock values - note: drink types are ordered by wantedStock DESC
|
||||
// So Beer (wantedStock 20) comes first [0], Cola (wantedStock 10) comes second [1]
|
||||
$form['bulk_edit_drink_type_stock_form[drinkTypes][0][currentStock]'] = 25; // Beer
|
||||
$form['bulk_edit_drink_type_stock_form[drinkTypes][1][currentStock]'] = 15; // Cola
|
||||
$form['bulk_edit_drink_type_current_stock_form[drinkTypes][0][currentStock]'] = 25; // Beer
|
||||
$form['bulk_edit_drink_type_current_stock_form[drinkTypes][1][currentStock]'] = 15; // Cola
|
||||
|
||||
$client->submit($form);
|
||||
|
||||
|
@ -149,7 +149,7 @@ test('Bulk Edit Form rejects negative values (validation)', function (): void {
|
|||
|
||||
// Submit the form with negative value
|
||||
$form = $crawler->selectButton('Update Current Stock Levels')->form();
|
||||
$form['bulk_edit_drink_type_stock_form[drinkTypes][0][currentStock]'] = -5;
|
||||
$form['bulk_edit_drink_type_current_stock_form[drinkTypes][0][currentStock]'] = -5;
|
||||
|
||||
$client->submit($form);
|
||||
|
||||
|
@ -189,7 +189,7 @@ test('Bulk Edit Form preserves drink type names as read-only', function (): void
|
|||
|
||||
// Submit the form
|
||||
$form = $crawler->selectButton('Update Current Stock Levels')->form();
|
||||
$form['bulk_edit_drink_type_stock_form[drinkTypes][0][currentStock]'] = 15;
|
||||
$form['bulk_edit_drink_type_current_stock_form[drinkTypes][0][currentStock]'] = 15;
|
||||
|
||||
$client->submit($form);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue