diff --git a/tests/functional/Admin/Catalog/AttributeFamilyCest.php b/tests/functional/Admin/Catalog/AttributeFamilyCest.php index 9a3ed6da1..60a20db72 100644 --- a/tests/functional/Admin/Catalog/AttributeFamilyCest.php +++ b/tests/functional/Admin/Catalog/AttributeFamilyCest.php @@ -74,7 +74,8 @@ class AttributeFamilyCest private function fillForm(FunctionalTester $I): array { $testData = [ - 'code' => $I->fake()->uuid, + // code needs to match to: '/^[a-zA-Z]+[a-zA-Z0-9_]+$/' + 'code' => $I->fake()->word . strtr($I->fake()->uuid, ['-' => '_']), 'name' => $I->fake()->sentence, ];