Skip to content

Commit d3e8f82

Browse files
committed
MAGETWO-91570: [2.2.x] - [Github]Can not save attribute #5907
- test fix
1 parent e3a04cb commit d3e8f82

File tree

1 file changed

+2
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Product

1 file changed

+2
-2
lines changed

dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Product/AttributeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ public function getLargeSwatchesAmountAttributeData() : array
154154
$maxInputVars = ini_get('max_input_vars');
155155
// Each option is at least 7 variables array for a visual swatch.
156156
// Set options count to exceed max_input_vars by 20 options (140 variables).
157-
$swatchVisualOptionsCount = floor($maxInputVars / 7) + 20;
158-
$swatchTextOptionsCount = floor($maxInputVars / 4) + 80;
157+
$swatchVisualOptionsCount = (int)floor($maxInputVars / 7) + 20;
158+
$swatchTextOptionsCount = (int)floor($maxInputVars / 4) + 80;
159159
return [
160160
'visual swatches' => $this->getSwatchVisualDataSet($swatchVisualOptionsCount),
161161
'text swatches' => $this->getSwatchTextDataSet($swatchTextOptionsCount)

0 commit comments

Comments
 (0)