From 00e351ce301e6641eca30c8eaaef208bc29a61c8 Mon Sep 17 00:00:00 2001 From: Herbert Maschke Date: Tue, 10 Mar 2020 10:55:30 +0100 Subject: [PATCH] adjust code generation to how it should be in AttributeFamilyCest.php --- tests/functional/Admin/Catalog/AttributeFamilyCest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ];