From 5bdc0dedea208abacd8c2603fb4c0354fd3adb7e Mon Sep 17 00:00:00 2001 From: Maxim Babichev Date: Thu, 16 Mar 2023 19:31:37 +0300 Subject: [PATCH] [9.x] ecs-fix --- tests/Infra/Factories/BuyerFactory.php | 6 ++++-- tests/Infra/Factories/ItemDiscountFactory.php | 3 ++- tests/Infra/Factories/ItemDiscountTaxFactory.php | 3 ++- tests/Infra/Factories/ItemFactory.php | 3 ++- tests/Infra/Factories/ItemMaxTaxFactory.php | 3 ++- tests/Infra/Factories/ItemMinTaxFactory.php | 3 ++- tests/Infra/Factories/ItemTaxFactory.php | 3 ++- tests/Infra/Factories/ItemWalletFactory.php | 3 ++- tests/Infra/Factories/ManagerFactory.php | 6 ++++-- tests/Infra/Factories/UserCashierFactory.php | 6 ++++-- tests/Infra/Factories/UserConfirmFactory.php | 6 ++++-- tests/Infra/Factories/UserFactory.php | 6 ++++-- tests/Infra/Factories/UserFloatFactory.php | 6 ++++-- tests/Infra/Factories/UserMultiFactory.php | 6 ++++-- 14 files changed, 42 insertions(+), 21 deletions(-) diff --git a/tests/Infra/Factories/BuyerFactory.php b/tests/Infra/Factories/BuyerFactory.php index 6d28b2c8c..0fd2c4372 100644 --- a/tests/Infra/Factories/BuyerFactory.php +++ b/tests/Infra/Factories/BuyerFactory.php @@ -22,8 +22,10 @@ class BuyerFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; } diff --git a/tests/Infra/Factories/ItemDiscountFactory.php b/tests/Infra/Factories/ItemDiscountFactory.php index db7053459..b8460aa79 100644 --- a/tests/Infra/Factories/ItemDiscountFactory.php +++ b/tests/Infra/Factories/ItemDiscountFactory.php @@ -24,7 +24,8 @@ class ItemDiscountFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => random_int(200, 700), 'quantity' => random_int(10, 100), ]; diff --git a/tests/Infra/Factories/ItemDiscountTaxFactory.php b/tests/Infra/Factories/ItemDiscountTaxFactory.php index 92ee1ace4..c7876aa1c 100644 --- a/tests/Infra/Factories/ItemDiscountTaxFactory.php +++ b/tests/Infra/Factories/ItemDiscountTaxFactory.php @@ -24,7 +24,8 @@ class ItemDiscountTaxFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => 250, 'quantity' => 90, ]; diff --git a/tests/Infra/Factories/ItemFactory.php b/tests/Infra/Factories/ItemFactory.php index c2bb57960..eab4e0296 100644 --- a/tests/Infra/Factories/ItemFactory.php +++ b/tests/Infra/Factories/ItemFactory.php @@ -24,7 +24,8 @@ class ItemFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => random_int(1, 100), 'quantity' => random_int(0, 10), ]; diff --git a/tests/Infra/Factories/ItemMaxTaxFactory.php b/tests/Infra/Factories/ItemMaxTaxFactory.php index df7e98a0d..3687b8939 100644 --- a/tests/Infra/Factories/ItemMaxTaxFactory.php +++ b/tests/Infra/Factories/ItemMaxTaxFactory.php @@ -24,7 +24,8 @@ class ItemMaxTaxFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => random_int(1, 100), 'quantity' => random_int(0, 10), ]; diff --git a/tests/Infra/Factories/ItemMinTaxFactory.php b/tests/Infra/Factories/ItemMinTaxFactory.php index b6400419c..cf1d2c512 100644 --- a/tests/Infra/Factories/ItemMinTaxFactory.php +++ b/tests/Infra/Factories/ItemMinTaxFactory.php @@ -24,7 +24,8 @@ class ItemMinTaxFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => random_int(1, 100), 'quantity' => random_int(0, 10), ]; diff --git a/tests/Infra/Factories/ItemTaxFactory.php b/tests/Infra/Factories/ItemTaxFactory.php index 249b7a930..60d62ccca 100644 --- a/tests/Infra/Factories/ItemTaxFactory.php +++ b/tests/Infra/Factories/ItemTaxFactory.php @@ -24,7 +24,8 @@ class ItemTaxFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => random_int(1, 100), 'quantity' => random_int(0, 10), ]; diff --git a/tests/Infra/Factories/ItemWalletFactory.php b/tests/Infra/Factories/ItemWalletFactory.php index 9e388ca56..a0bb02a60 100644 --- a/tests/Infra/Factories/ItemWalletFactory.php +++ b/tests/Infra/Factories/ItemWalletFactory.php @@ -24,7 +24,8 @@ class ItemWalletFactory extends Factory public function definition(): array { return [ - 'name' => fake()->domainName, + 'name' => fake() + ->domainName, 'price' => random_int(1, 100), 'quantity' => random_int(0, 10), ]; diff --git a/tests/Infra/Factories/ManagerFactory.php b/tests/Infra/Factories/ManagerFactory.php index eb8b22a46..94f60aa60 100644 --- a/tests/Infra/Factories/ManagerFactory.php +++ b/tests/Infra/Factories/ManagerFactory.php @@ -26,8 +26,10 @@ public function definition(): array { return [ 'id' => Uuid::uuid4()->toString(), - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; } diff --git a/tests/Infra/Factories/UserCashierFactory.php b/tests/Infra/Factories/UserCashierFactory.php index 4d6491962..e4ab0194a 100644 --- a/tests/Infra/Factories/UserCashierFactory.php +++ b/tests/Infra/Factories/UserCashierFactory.php @@ -24,8 +24,10 @@ class UserCashierFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; } diff --git a/tests/Infra/Factories/UserConfirmFactory.php b/tests/Infra/Factories/UserConfirmFactory.php index fb695041c..6b90ba09d 100644 --- a/tests/Infra/Factories/UserConfirmFactory.php +++ b/tests/Infra/Factories/UserConfirmFactory.php @@ -24,8 +24,10 @@ class UserConfirmFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; } diff --git a/tests/Infra/Factories/UserFactory.php b/tests/Infra/Factories/UserFactory.php index 257edf5b2..90a07b57c 100644 --- a/tests/Infra/Factories/UserFactory.php +++ b/tests/Infra/Factories/UserFactory.php @@ -24,8 +24,10 @@ class UserFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; } diff --git a/tests/Infra/Factories/UserFloatFactory.php b/tests/Infra/Factories/UserFloatFactory.php index 79082f1a7..c80bd9ba4 100644 --- a/tests/Infra/Factories/UserFloatFactory.php +++ b/tests/Infra/Factories/UserFloatFactory.php @@ -24,8 +24,10 @@ class UserFloatFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; } diff --git a/tests/Infra/Factories/UserMultiFactory.php b/tests/Infra/Factories/UserMultiFactory.php index 8544dcaa9..c52cb37d7 100644 --- a/tests/Infra/Factories/UserMultiFactory.php +++ b/tests/Infra/Factories/UserMultiFactory.php @@ -24,8 +24,10 @@ class UserMultiFactory extends Factory public function definition(): array { return [ - 'name' => fake()->name, - 'email' => fake()->unique() + 'name' => fake() + ->name, + 'email' => fake() + ->unique() ->safeEmail, ]; }