From ef527dc9f2986d85b1c587d70a00b51d60a54801 Mon Sep 17 00:00:00 2001 From: Sasha Singh Date: Mon, 31 Jan 2022 02:00:45 +0530 Subject: [PATCH] Update ProductCest.php Added typing to string to fix the function test error. --- tests/functional/Admin/Catalog/ProductCest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/Admin/Catalog/ProductCest.php b/tests/functional/Admin/Catalog/ProductCest.php index 7d0642521..7faf0b17a 100644 --- a/tests/functional/Admin/Catalog/ProductCest.php +++ b/tests/functional/Admin/Catalog/ProductCest.php @@ -97,7 +97,7 @@ class ProductCest 'code' => 'default', ]); - $I->selectOption('attribute_family_id', $attributeFamily->id); + $I->selectOption('attribute_family_id', (string) $attributeFamily->id); $sku = $this->faker->randomNumber(3); @@ -111,7 +111,7 @@ class ProductCest $I->fillField('name', $productTitle); $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('weight', $this->faker->randomDigit); $I->fillField('short_description', $this->faker->paragraph(1, true));