Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public function fillRandomPrices(string $type): void |
||
50 | { |
||
51 | $I = $this->tester; |
||
52 | |||
53 | $this->priceValues = $I->executeJS(" |
||
54 | var prices = []; |
||
55 | $('.price-item').each(function(){ |
||
56 | var number = $(this).find('input[id^={$type}][id$=price]'); |
||
57 | var randomValue = Math.floor(Math.random() * 2147483647); |
||
58 | number.val(randomValue); |
||
59 | prices.push(randomValue); |
||
60 | }); |
||
61 | return prices; |
||
62 | "); |
||
63 | } |
||
64 | } |
||
65 |