Update ProductCest.php
Added typing to string to fix the function test error.
This commit is contained in:
parent
5efb9cd64f
commit
ef527dc9f2
|
|
@ -97,7 +97,7 @@ class ProductCest
|
||||||
'code' => 'default',
|
'code' => 'default',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$I->selectOption('attribute_family_id', $attributeFamily->id);
|
$I->selectOption('attribute_family_id', (string) $attributeFamily->id);
|
||||||
|
|
||||||
$sku = $this->faker->randomNumber(3);
|
$sku = $this->faker->randomNumber(3);
|
||||||
|
|
||||||
|
|
@ -111,7 +111,7 @@ class ProductCest
|
||||||
|
|
||||||
$I->fillField('name', $productTitle);
|
$I->fillField('name', $productTitle);
|
||||||
$I->fillField('url_key', $productUrlKey);
|
$I->fillField('url_key', $productUrlKey);
|
||||||
$I->selectOption($this->attributeBrand->code, $this->attributeBrandDefaultOption->id);
|
$I->selectOption($this->attributeBrand->code, (string) $this->attributeBrandDefaultOption->id);
|
||||||
$I->fillField('price', $this->faker->randomFloat(2));
|
$I->fillField('price', $this->faker->randomFloat(2));
|
||||||
$I->fillField('weight', $this->faker->randomDigit);
|
$I->fillField('weight', $this->faker->randomDigit);
|
||||||
$I->fillField('short_description', $this->faker->paragraph(1, true));
|
$I->fillField('short_description', $this->faker->paragraph(1, true));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue